Scope commands as local var.

This commit is contained in:
Aust1n46 2022-04-03 20:08:47 -05:00
parent 430209b0ec
commit a0c2501c3e

View File

@ -146,7 +146,6 @@ public class CommandController {
@Inject
private ChannelAlias channelAlias;
private final Map<String, Command> commands = new HashMap<>();
private Map<String, Command> knownCommands;
@SuppressWarnings("unchecked")
@ -184,6 +183,7 @@ public class CommandController {
e.printStackTrace();
}
}
final Map<String, Command> commands = new HashMap<>();
commands.put("broadcast", broadcast);
commands.put("channel", channel);
commands.put("join", channel);