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
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
The text was updated successfully, but these errors were encountered:
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 nodeDescribe 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
The text was updated successfully, but these errors were encountered: