public class PlayerChatEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerChatEvent(Player player,
String message) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
String |
message() |
void |
setMessage(String message) |
playerpublic PlayerChatEvent(Player player, String message)
player - the player associated with this eventmessage - the message sent by the playerpublic void setMessage(String message)
message - the message associated with this eventpublic boolean isIgnored()
isIgnored in interface Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventCopyright © 2016. All rights reserved.