[SPIGOT-433] Add tab-completion event for commands Created: 17/Jan/15  Updated: 07/Jun/16  Resolved: 07/Jun/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: MCShamrock Assignee: Unassigned
Resolution: Fixed Votes: 3
Labels: Craftbukkit, event, spigot


 Description   

There is the PlayerChatTabCompleteEvent to modify the tab-completion of a chat message the player is typing in. However, there is no way to modify the tab-completions of a command the player is typing in. Plugins can modify the tab-completions of their own commands, but there is no event for it so that all plugins can modify all command tab-completions.

Example:
I am creating a login plugin, and until the player has successfully authenticated, he shall not be able to do anything, so he shouldn't receive command-tab-completions of commands either. After all, such completions might contain information that should only be visible to a specific player - and such data shouldn't be sent to an unauthentificated player.



 Comments   
Comment by Black Hole [ 07/Jun/16 ]

Added with https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/e217da5747089094acffd0b65b03eb095f465930

Comment by MCShamrock [ 22/Jan/15 ]

Added Bukkit PR-45 and CraftBukkit PR-92 which implement this feature.

Comment by literalplus [ 18/Jan/15 ]

Would also be useful for my CommandBlockerUltimate plugin, which is currently using ProtocolLib to hijack TabCompleteResponse packets on Spigot. (That might be a temporary workaround for you)

Generated at Mon Apr 07 22:29:16 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.