@SuppressWarnings("deprecation")
	@Override
	public boolean onCommand(CommandSender sender, org.bukkit.command.Command cmd, String[] args) {
		if(!Commands.isPlayer(sender)) return false;
		
		Player target = null;
		Player p = (Player)sender;

		if(args.length < 1 || args.length > 2) return false;

		if(args.length == 1) {
			Nickname.setNickname(p, args);
			return true;
		}

		if(args.length == 2) {
			target = Bukkit.getServer().getPlayer(args[0]);
			if(target == null) {
				Messenger.tell(p, "The player specified is offline or does not exist.");
				return true;
			} else {
				Nickname.setNicknameOthers(p, target, args);
				return true;
			}
		}
		return false;
	}