Fix disabling almost all commands. Oops
This commit is contained in:
parent
70be951ac2
commit
e4522c7ab4
@ -120,7 +120,7 @@ public class BungeeCord
|
|||||||
String[] split = commandLine.trim().split(" ");
|
String[] split = commandLine.trim().split(" ");
|
||||||
String commandName = split[0].toLowerCase();
|
String commandName = split[0].toLowerCase();
|
||||||
Command command = commandMap.get(commandName);
|
Command command = commandMap.get(commandName);
|
||||||
if (config.disabledCommands == null || !config.disabledCommands.contains(commandName))
|
if (config.disabledCommands != null && config.disabledCommands.contains(commandName))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
} else if (command != null)
|
} else if (command != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user