Pkr and Parkour not registered as parkour commands.
mibby opened this issue ยท 7 comments
Compiled as of 7dea8ea
EnforceParkourCommands:
Enabled: true
Players inside parkour mode can't use /parkour or /pkr commands to leave. Is it only registering /pa as parkour commands? I removed the /pa alias since I have another plugin that uses /pa for PVP arenas.
"/parkour leave" and /"pkr leave" both work fine for me, as does the GUI item to leave the course.
You could always try adding pkr as a whistlisted command:
"/pa whitelist pkr".
/pkr can then be used in-game.
Maybe check how you removed the /pa alias as it may have corrupted other things.
Whitelisting would have indeed solved the problem, but being that it is a registered alias, just thought it should be allowed by default, especially for people who are unaware and wouldn't have added it to the whitelist.
Being that it is now set in the latest commit, I will close this ticket. :)
@mibby Please validate what @steve4744 has suggested, before I raise this problem, thanks both.
My apologies. It seems /parkour does work but /pkr is not registered as a parkour command. I get the Non-Parkour commands have been disabled!
output in chat when trying to type /pkr leave
while part of a parkour course. Non-admin, non-op, not added to the whitelist command list.
Since /pkr is an alias of parkour, shouldn't it be registered as a parkour command by default? I'm assuming /pa may also not function as a registered parkour command while in the course,, but I manually remove that alias since it is used by another plugin of mine.
Compiled as of bc5ff34
The pkr alias is defined in the plugin.yml with pa - as you removed pa, did you leave the pkr alias definition?
As a test you could try the original parkour and plugin.yml to see if /pkr works. As I said it works for me in-game.
Yes, I left the pkr alias definition in the plugin.yml.
Are you opped / grouped admin who inherits bypass permissions and certain you don't have /pkr in the whitelist list? As me testing without any inherited parkour permissions, wildcards, or OP bypasses, was not able to use /pkr.
You are correct in that pkr was not considered a Parkour command, I've fixed in next commit.
However @steve4744 suggested that you whitelisted the command, which would have fixed the problem.