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

Is there a way to make my mod's commands use a different prefix than '/'? #148

Open
StupidRepo opened this issue Mar 26, 2024 · 1 comment

Comments

@StupidRepo
Copy link

I have a Fabric Utility mod and would like to have a way to configure options via commands. However, I'd like it to be easier to browse commands by making the prefix ',' but still get suggestions for the commands?

MC 1.20.4, latest Fabric API, etc.
Any help would be appreciated!

@Quenteez
Copy link

Quenteez commented Jun 13, 2024

@StupidRepoI think you need to call this method when the player uses a different prefix: ServerPlayNetworkHandler#onCommandExecution. Anyway, the solution is somewhere near this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants