Revert "Test Commit"

This reverts commit d230962e19.
This commit is contained in:
Andrew
2013-10-04 12:52:56 +13:00
parent e809196bfc
commit fed5641931
47 changed files with 113 additions and 505 deletions

View File

@@ -0,0 +1,31 @@
package me.libraryaddict.disguise.commands;
import me.libraryaddict.disguise.DisguiseListener;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
public class UndisguiseEntityCommand implements CommandExecutor {
private DisguiseListener listener;
public UndisguiseEntityCommand(DisguiseListener listener) {
this.listener = listener;
}
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (sender.getName().equals("CONSOLE")) {
sender.sendMessage(ChatColor.RED + "You may not use this command from the console!");
return true;
}
if (sender.hasPermission("libsdisguises.undisguiseentity")) {
listener.setSlap(sender.getName(), null);
} else
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command!");
return true;
}
}