mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 10:07:38 +01:00
Fix commands not being executed at all when disabled
This commit is contained in:
parent
71ab7f7c45
commit
70be951ac2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user