package net.simpvp.NoSpam;

import java.util.UUID;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class AmIMutedCommand implements CommandExecutor {

	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

		Player player = null;
		if (sender instanceof Player){
			player = (Player) sender;
		}

		/* Console can't be muted */
		if ( player == null ) {
			NoSpam.instance.getLogger().info("You can't be muted, silly!");
			return true;
		}

		UUID uuid = player.getUniqueId();

		if ( SpamHandler.isMuted(uuid) ) sender.sendMessage("You are.");
		else sender.sendMessage("You are not.");

		return true;

	}

}


@@ -679,22 +679,18 @@
 ssage(%22Y
-ou ar
 e
+s
 .%22);%0A%09%09e
@@ -717,19 +717,10 @@
 ge(%22
-You are not
+No
 .%22);

Simplify /amimuted responses