You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occurs in games that uses classes in Game folder.
Using two different aliases to call the command will make two command class because of the HashMap.
For example, calling =hangman start, then =hm end will say the game haven't started yet, because they creates two different command classes.
The text was updated successfully, but these errors were encountered:
Possible solution: creates another HashMap (per guild) specifically for commands that requires this use. And creates all objects and fill them in the HashMap.
For example,
commands.put("hangman", new HangManCommand());
commands.put("hm", new HangManCommand());
Should be
HangManCommand hm = new HangManCommand();
guildObj.put("hangman", hm);
guildObj.put("hm", hm);
Occurs in games that uses classes in Game folder.
Using two different aliases to call the command will make two command class because of the HashMap.
For example, calling
=hangman start
, then=hm end
will say the game haven't started yet, because they creates two different command classes.The text was updated successfully, but these errors were encountered: