From 46fdc23ff53c8e4af21241dd3dc513f4d9b48072 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Mon, 16 Dec 2013 10:24:24 +0400 Subject: [PATCH] Fix commands restrictions for real --- 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 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);