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) |
player
public 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 Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventCopyright © 2016. All rights reserved.