#Modifying tab completion for vanilla commands
1 messages · Page 1 of 1 (latest)
if you hide players with hidePlayer method (not sure how is it called exactly), it should already hide them for tab completion afaik
Yes, however my system is a bit different than that, and it doesn't use hidePlayer()...
With a quick check it seems as though hidePlayer() does not hide them in tab complete anyways :)
doesn't trigger on vanilla commands
players are in fact cached locally for tab complete
not sure what invalidates said cache tho
declaration: package: org.bukkit.event.player, class: PlayerChatTabCompleteEvent
doesnt get fired anymore
😔
the only thing that comes to my mind would be extending the vanilla command class, overriding the tabcomplete method and modifying the knownCommands map
Alright, thanks 👍