Can no longer set aliases for quaremap commands
lerokko opened this issue ยท 3 comments
We recent updated our server to squaremap version 1.2.6. Since then I am no longer able to set aliases for it.
The command /show and /hide do not work but typing them out with squaremap does work. Could this be related to the new main-command-aliases
feature?
config.yml excerpt:
commands:
main-command-label: squaremap
main-command-aliases: []
Aliases:
show:
- squaremap show
hide:
- squaremap hide
Log excerpt:
Line 126: [12:36:24] [Server thread/INFO]: [squaremap] Loading server plugin squaremap v1.2.6
Line 126: [12:36:24] [Server thread/INFO]: [squaremap] Loading server plugin squaremap v1.2.6
Line 161: [12:36:37] [Server thread/INFO]: [squaremap] Enabling squaremap v1.2.6
Line 161: [12:36:37] [Server thread/INFO]: [squaremap] Enabling squaremap v1.2.6
Line 177: [12:36:45] [Server thread/INFO]: [squaremap] Internal webserver running on 0.0.0.0:8080
Line 579: [12:38:20] [Server thread/WARN]: Could not register alias show because it contains commands that do not exist: squaremap show
Line 580: [12:38:20] [Server thread/WARN]: Could not register alias hide because it contains commands that do not exist: squaremap hide
main-command-aliases
has been a feature for over 3 years, this looks more like a bug or lack of functionality in the server's alias configuration feature.
squaremap registers commands through the modern Paper command API on 1.20.6+. The old Paper API for registering Brigadier commands (which was always experimental/subject to change) no longer works in these versions.
So yes, this is a lack of functionality on the Paper side. I'm not sure if they would want to shoehorn support for modern commands in the old alias system, or have something new and better, but the latter seems better at first thought.
I am using the commands.yml for aliases. It was working on the latest paper 1.20.4 build but no longer on the latest 1.20.6 build. Other plugins aliases work fine. The problem still occurs with only squaremap and luckperms installed. I was also using the latest 1.20.4 build at the time I just don't look that often in the config and never noticed the -map alias.
This behavior occurs regardless of what is set in the squaremap config. Only ever the command set in the squaremap config itself are executable. Paper can not register any alias for squaremap (namespace or not).
Could this be an issue with paper/spigot/bukkit itself?