From e4522c7ab4a07a82319fa2e150ff74728707ea9f Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 6 Nov 2012 18:43:42 +1100 Subject: [PATCH] Fix disabling almost all commands. Oops --- src/main/java/net/md_5/bungee/BungeeCord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/md_5/bungee/BungeeCord.java b/src/main/java/net/md_5/bungee/BungeeCord.java index 3e13505b..f1088f4b 100644 --- a/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/src/main/java/net/md_5/bungee/BungeeCord.java @@ -120,7 +120,7 @@ public class BungeeCord String[] split = commandLine.trim().split(" "); String commandName = split[0].toLowerCase(); Command command = commandMap.get(commandName); - if (config.disabledCommands == null || !config.disabledCommands.contains(commandName)) + if (config.disabledCommands != null && config.disabledCommands.contains(commandName)) { return false; } else if (command != null)