Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tab-completion for /msg & cleanup chat dispatcher #1101

Merged
merged 2 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions core/src/main/java/tc/oc/pgm/command/SettingCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
// TODO: remove some of these when settings UI is released
public final class SettingCommand {

public static final SettingCommand INSTANCE = new SettingCommand();

public static SettingCommand getInstance() {
return INSTANCE;
}

private SettingCommand() {}

@CommandMethod("settings")
@CommandDescription("Open the settings menu")
public void settings(MatchPlayer player) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public void registerCommands() {
register(new ModeCommand());
register(new ProximityCommand());
register(new RestartCommand());
register(new SettingCommand());
register(SettingCommand.getInstance());
register(new StartCommand());
register(new StatsCommand());
register(new TeamCommand());
Expand Down
Loading