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

[Feature Request]: Custom Command Map #13

Open
Foxtrek64 opened this issue Nov 12, 2023 · 0 comments
Open

[Feature Request]: Custom Command Map #13

Foxtrek64 opened this issue Nov 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Foxtrek64
Copy link

Foxtrek64 commented Nov 12, 2023

Is your feature request related to a problem?

This is particularly useful for aliases, but could be handy for creating custom commands. Permission nodes should be included, something like prometheus.customcommands.[command], but the exact naming can be discussed.

Solution(s)

Example usage.
/alias alias actual key description
Forward slashes should be omitted, just like on the console. This means the WorldEdit command //fill would be /fill.

The following example would allow those with the prometheus.customcommands.clear-inventory command to clear their own inventory.
/alias create "ci" "clear @s" clear-inventory "Clears your own inventory."

The description is only for information. For instance, /alias info clear-inventory would display information on how to run the command, what it does, and what permission node is required to use it.

I'm not sure how to accept arguments for specific things, like players, nor do I know if these can be registered with the command system at runtime (as opposed to at startup), but additional syntax to accept specific types would be useful. For instance:

@player - A list of players
@prometheus.roles - accept an argument for a prometheus role
@argonauts.guilds - accept the guid of an argonaut guild
@permission - Accepts a permission node

Describe alternatives you've considered

No response

Mod Version

1.2.1

Mod Loader Version

1.20.1 - 0.14.24

Mod Loader

Fabric

Additional context

No response

@Foxtrek64 Foxtrek64 added the enhancement New feature or request label Nov 12, 2023
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

No branches or pull requests

1 participant