From 70be951ac26e1dddef4fdec49486c73a73704e6b Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 6 Nov 2012 18:35:51 +1100 Subject: [PATCH] Fix commands not being executed at all when disabled --- src/main/java/net/md_5/bungee/BungeeCord.java | 5 ++++- 1 file changed, 4 insertions(+), 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 bf801b48..3e13505b 100644 --- a/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/src/main/java/net/md_5/bungee/BungeeCord.java @@ -120,7 +120,10 @@ public class BungeeCord String[] split = commandLine.trim().split(" "); String commandName = split[0].toLowerCase(); Command command = commandMap.get(commandName); - if (command != null && (config.disabledCommands == null || !config.disabledCommands.contains(commandName))) + if (config.disabledCommands == null || !config.disabledCommands.contains(commandName)) + { + return false; + } else if (command != null) { String[] args = Arrays.copyOfRange(split, 1, split.length); try