Revert "Another test commit."

This reverts commit 19605701fe.
This commit is contained in:
Andrew
2013-10-04 12:52:43 +13:00
parent 19605701fe
commit e809196bfc
46 changed files with 0 additions and 0 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;
}
}