BanManagement / BanManager

A plugin for Minecraft to manage punishments and moderate more effectively
https://banmanagement.com/
Other
115 stars 91 forks source link

Tab completions should be case insensitive #897

Open piotrskibapl opened 4 years ago

piotrskibapl commented 4 years ago

Issue report

Tell us about your environment

BanManager config.yml:

not relevant

Describe your issue:

Currently, all BanManager commands have case sensitive tab suggestions. That is sometimes annoying, especially when you want to punish a player fast. Almost all other commands (including these from spigot itself) have case insensitive suggestions.

confuser commented 4 years ago

The issue here is offline mode support as names are case sensitive, e.g. confuser and Confuser are two different players under Bukkit/Spigot. How would you suggest handling this with auto complete?

piotrskibapl commented 4 years ago

@confuser in this particular case, when I start typing "con" and press tab, I'd like to see both "confuser" and "Confuser" in the suggestions so I could switch between them easily (and that's the behavior of vanilla Minecraft I guess).

I've looked into the code and it seems to me that the current implementation of tab completions won't allow us to apply these changes easily. I can also see that disabling the offlineAutoComplete option in the config solves the issue for online players, so I'll stick to that for now. I'll let you know if I found any other solution next days.