Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.player.PlayerChatTabCompleteEvent Class Reference
Inheritance diagram for org.bukkit.event.player.PlayerChatTabCompleteEvent:
org.bukkit.event.player.PlayerEvent org.bukkit.event.Event

Public Member Functions

 PlayerChatTabCompleteEvent (final Player who, final String message, final Collection< String > completions)
String getChatMessage ()
String getLastToken ()
Collection< String > getTabCompletions ()
HandlerList getHandlers ()
- Public Member Functions inherited from org.bukkit.event.player.PlayerEvent
 PlayerEvent (final Player who)
final Player getPlayer ()
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 Event (boolean isAsync)
String getEventName ()
abstract HandlerList getHandlers ()
final boolean isAsynchronous ()

Static Public Member Functions

static HandlerList getHandlerList ()

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.player.PlayerEvent
Player player

Detailed Description

Called when a player attempts to tab-complete a chat message.

Definition at line 12 of file PlayerChatTabCompleteEvent.java.

Member Function Documentation

String org.bukkit.event.player.PlayerChatTabCompleteEvent.getChatMessage ( )

Gets the chat message being tab-completed.

the chat message

Definition at line 37 of file PlayerChatTabCompleteEvent.java.

37  {
38  return message;
39  }
String org.bukkit.event.player.PlayerChatTabCompleteEvent.getLastToken ( )

Gets the last 'token' of the message being tab-completed.

The token is the substring starting with the character after the last space in the message.

The last token for the chat message

Definition at line 49 of file PlayerChatTabCompleteEvent.java.

49  {
50  return lastToken;
51  }
Collection<String> org.bukkit.event.player.PlayerChatTabCompleteEvent.getTabCompletions ( )

This is the collection of completions for this event.

the current completions

Definition at line 58 of file PlayerChatTabCompleteEvent.java.

58  {
59  return completions;
60  }

The documentation for this class was generated from the following file: