public class PlayerChatEvent extends PlayerMessageEvent implements Cancellable
| Constructor and Description |
|---|
PlayerChatEvent(Player player,
Message message) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
getMessage, getPlayer, setMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelprotected String format
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2020 NukkitX. All rights reserved.