Fix commands again

This commit is contained in:
Shevchik 2013-12-16 10:22:50 +04:00
parent 4810eb0ac4
commit 965018dba3

View File

@ -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);