diff --git a/src/com/cnaude/chairs/CommandRestrict.java b/src/com/cnaude/chairs/CommandRestrict.java index 8a7d278..7f0d698 100644 --- a/src/com/cnaude/chairs/CommandRestrict.java +++ b/src/com/cnaude/chairs/CommandRestrict.java @@ -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);