Skip to content

[Feat] Support multiple command aliases instead of single alias - #16

Merged
Bram1903 merged 1 commit into
Bram1903:mainfrom
MioArchive:main
Nov 30, 2025
Merged

Bram1903 merged 1 commit into
Bram1903:mainfrom
MioArchive:main

Conversation

@MioArchive

Copy link
Copy Markdown
Contributor

This PR improves the command system by allowing users to set multiple shortcuts for the main TotemGuard command, rather than just one. Previously, only ‘tg’ was possible, but now several variants such as ‘tg’, “totem” or ‘guard’ can be used simultaneously.

The configuration has been slightly adjusted for this purpose. Invalid shortcuts are automatically skipped, while valid ones remain. If no valid shortcuts remain at the end, the plugin automatically reverts to the default ‘tg’ so that everything continues to function smoothly. The changes affect Settings.java, ConfigManager.java and CommandDefaults.java.

…to support multiple aliases and added validation for config entries.
@Bram1903
Bram1903 self-requested a review November 30, 2025 13:51
@Bram1903 Bram1903 added the enhancement New feature or request label Nov 30, 2025
@Bram1903 Bram1903 changed the title Support multiple command aliases instead of single alias [Feat] Support multiple command aliases instead of single alias Nov 30, 2025

@Bram1903 Bram1903 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Bram1903
Bram1903 merged commit f7b33e1 into Bram1903:main Nov 30, 2025
1 check passed
fuzz5566 pushed a commit to fuzz5566/TotemGuard that referenced this pull request Apr 13, 2026
[Feat] Support multiple command aliases instead of single alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants