Removed console error.

Removed silentChest message.
This commit is contained in:
lishid
2012-02-18 01:46:39 -05:00
parent 80ad1f971a
commit 5636cd26c1
7 changed files with 31 additions and 6 deletions

View File

@@ -13,6 +13,11 @@ import org.bukkit.entity.Player;
public class ToggleOpenInvPluginCommand implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if(!(sender instanceof Player))
{
sender.sendMessage(ChatColor.RED + "You can't use this from the console.");
return true;
}
if (!PermissionRelay.hasPermission((Player)sender, "openinv")) {
sender.sendMessage(ChatColor.RED + "You do not have permission to access player inventories");
return true;