From 965018dba3e8ea85399f14c1ba587f1d3deb2e6d Mon Sep 17 00:00:00 2001 From: Shevchik Date: Mon, 16 Dec 2013 10:22:50 +0400 Subject: [PATCH] Fix commands again --- src/com/cnaude/chairs/CommandRestrict.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);