AuraDevelopmentTeam / BungeeChat2

A new way to send private, global or help messages and to do much more with chatting network wide!
https://www.spigotmc.org/threads/bungee-chat.93960
GNU General Public License v3.0
65 stars 43 forks source link

Feature: Return alias in `incorrectUsage` error #109

Open fjeddy opened 4 years ago

fjeddy commented 4 years ago

When a user is using a BungeeChat command incorrectly with an alias, then the helper text return uses the original command / alias instead of the one the player used. It should not.

The command /ignore has the alias /i, if a player uses the /i alias and does anything incorrectly, then it will return the original command, like so

&cIncorrect usage! Use this command like this: /ignore .....

but it should instead use the same command / alias that the player used to begin with

&cIncorrect usage! Use this command like this: /i .....

If the player uses /ignore, it shows /ignore in the error, if he uses /i it shows /i, and so on.

BrainStone commented 3 years ago

The biggest issue with that request is that in the execute method I don't know which alias was used!

If someone has a solution for that, let me please know!