@Override
	public boolean onCommand(CommandSender sender, Command cmd, String arg2,
			String[] args) {
		if (args.length < 1) {
			// No args, display list
			sender.sendMessage(ChatColor.YELLOW + "Muted players:");
			String plrs = "";
			for (String plr : plugin.mutedplrs.keySet()) {
				plrs += plr + ", ";
			}
			sender.sendMessage(ChatColor.YELLOW + plrs);
			sender.sendMessage(ChatColor.YELLOW
					+ "Use /mute <player> to mute someone.");
			return true;
		} else if (args.length == 1) {
			// One argument, mute the player
			String tomute;
			Player todeafen = Bukkit.getServer().getPlayer(args[0]);
			if (todeafen != null) {
				tomute = todeafen.getName();
			} else {
				sender.sendMessage(ChatColor.RED + args[0] + " is not online. Make sure name is exactly right");
				tomute = args[0];
			}
			if (sender.hasPermission("warhub.moderator")) {
				if (plugin.mutedplrs.containsKey(tomute)) {
					plugin.mutedplrs.remove(tomute);
					sender.sendMessage(ChatColor.YELLOW
							+ tomute + " has been unmuted.");
					if (PlayerInfo.isPlayer(tomute)) PlayerInfo.toPlayer(tomute).sendMessage(ChatColor.YELLOW
							+ "You have been unmuted.");
				} else {
					plugin.mutedplrs.put(tomute, 1);
					sender.sendMessage(ChatColor.YELLOW
							+ tomute + " has been muted.");
					if (PlayerInfo.isPlayer(tomute)) PlayerInfo.toPlayer(tomute).sendMessage(ChatColor.YELLOW
							+ "You have been muted.");
				}

			} else {
				sender.sendMessage(ChatColor.RED
						+ "You do not have permissions to mute players.");
			}
			return true;
		}
		return false;
	}