|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerChatEvent
AsyncPlayerChatEvent.AsyncPlayerChatEvent is the encouraged alternative for thread safe implementations.
@Deprecated public class PlayerChatEvent
Holds information for player chat and commands
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
Event.Result |
| Field Summary |
|---|
| Fields inherited from class org.bukkit.event.player.PlayerEvent |
|---|
player |
| Constructor Summary | |
|---|---|
PlayerChatEvent(Player player,
String message)
Deprecated. |
|
PlayerChatEvent(Player player,
String message,
String format,
Set<Player> recipients)
Deprecated. |
|
| Method Summary | |
|---|---|
String |
getFormat()
Deprecated. Gets the format to use to display this chat message |
static HandlerList |
getHandlerList()
Deprecated. |
HandlerList |
getHandlers()
Deprecated. |
String |
getMessage()
Deprecated. Gets the message that the player is attempting to send |
Set<Player> |
getRecipients()
Deprecated. Gets a set of recipients that this chat message will be displayed to |
boolean |
isCancelled()
Deprecated. Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Deprecated. Sets the cancellation state of this event. |
void |
setFormat(String format)
Deprecated. Sets the format to use to display this chat message |
void |
setMessage(String message)
Deprecated. Sets the message that the player will send |
void |
setPlayer(Player player)
Deprecated. Sets the player that this message will display as, or command will be executed as |
| Methods inherited from class org.bukkit.event.player.PlayerEvent |
|---|
getPlayer |
| Methods inherited from class org.bukkit.event.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlayerChatEvent(Player player,
String message)
public PlayerChatEvent(Player player,
String message,
String format,
Set<Player> recipients)
| Method Detail |
|---|
public boolean isCancelled()
Cancellable
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
Cancellable
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic String getMessage()
public void setMessage(String message)
message - New message that the player will sendpublic void setPlayer(Player player)
player - New player which this event will execute aspublic String getFormat()
public void setFormat(String format)
format - String.Format compatible format stringpublic Set<Player> getRecipients()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||