@SuppressWarnings("deprecation")
	@Override
	public boolean onCommand(CommandSender sender, org.bukkit.command.Command cmd, String[] args) {
		if (args.length < 1) 
			return false;

		if(!(Commands.isPlayer(sender))) 
			return false;

		Player s = (Player) sender;
		Player p = (Player) PlayerChat.plugin.getServer().getPlayer(args[0]);
		
		if (p == null) {
			if(!PlayerChat.plugin.Mute.contains(args[0])) {
				Messenger.tell(s, args[0] + " is offline or does not exist.");
				return true;
			} else {
				PlayerChat.plugin.Mute.remove(args[0]);
				Messenger.tell(s, "You have unmuted " + args[0] + ".");
				return true;
			}
		}
		
		if (args.length == 1) {
			String pName = p.getName();
			Mute.toggleMute(s, p, pName);
		}
		
		if (args.length > 1) {
			String time = String.valueOf(args[1]);
			try {
				long timeStamp = DateUtil.parseDateDiff(time, true);
				Mute.setMuted(s, p, p.getName(), timeStamp);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		
		return true;
	}