Ban Management

Ban Management

193k Downloads

Tab completions should be case insensitive

piotrskibapl opened this issue ยท 2 comments

commented

Issue report

Tell us about your environment

  • Server Software: git-Paper-384

  • Server Version: 1.15.2

  • BanManager Version: 7.2.2

  • Online/Offline mode: offline

  • Bungeecoord online/offline mode (if applicable): offline

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.

commented

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?

commented

@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.