public final class PlayerPrivateMessageEvent extends PlayerEvent implements Cancellable
PlayerChatEvent| Constructor and Description |
|---|
PlayerPrivateMessageEvent(Player player,
Player targetPlayer) |
| Modifier and Type | Method and Description |
|---|---|
Player |
getTargetPlayer()
Gets the recipient of the message.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Player getTargetPlayer()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.