mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 02:19:05 +00:00
Scope commands as local var.
This commit is contained in:
parent
430209b0ec
commit
a0c2501c3e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user