diff --git a/src/com/cnaude/chairs/CommandRestrict.java b/src/com/cnaude/chairs/CommandRestrict.java index 510e3b3..8a7d278 100644 --- a/src/com/cnaude/chairs/CommandRestrict.java +++ b/src/com/cnaude/chairs/CommandRestrict.java @@ -31,7 +31,7 @@ public class CommandRestrict implements Listener { if (disabledCommand.startsWith(playercommand)) { String therest = disabledCommand.replace(playercommand, ""); - if (therest.startsWith(" ")) + if (therest.isEmpty() || therest.startsWith(" ")) { event.setCancelled(true); player.sendMessage(plugin.msgCommandRestricted);