Update documentation and status of command completion related events

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2018-08-10 08:20:07 +10:00
parent 2a3a839854
commit 30068a6e08
3 changed files with 12 additions and 5 deletions

View File

@@ -6,10 +6,17 @@ import org.bukkit.command.CommandSender;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerCommandSendEvent;
/**
* Called when a {@link CommandSender} of any description (ie: player or
* console) attempts to tab complete.
* <br>
* Note that due to client changes, if the sender is a Player, this event will
* only begin to fire once command arguments are specified, not commands
* themselves. Plugins wishing to remove commands from tab completion are
* advised to ensure the client does not have permission for the relevant
* commands, or use {@link PlayerCommandSendEvent}.
*/
public class TabCompleteEvent extends Event implements Cancellable {