Fix commands restrictions for real

This commit is contained in:
Shevchik 2013-12-16 10:24:24 +04:00
parent 965018dba3
commit 46fdc23ff5

View File

@ -30,7 +30,7 @@ public class CommandRestrict implements Listener {
{
if (disabledCommand.startsWith(playercommand))
{
String therest = disabledCommand.replace(playercommand, "");
String therest = playercommand.replace(disabledCommand, "");
if (therest.isEmpty() || therest.startsWith(" "))
{
event.setCancelled(true);