Class StaffChatEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.StaffChatEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class StaffChatEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event thrown when someone sends a message in the staffchat (/staffchat)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListThe message thatgetPlayer()has providedorg.bukkit.entity.PlayerGet the player who executed the /staffchat command.booleanvoidsetCancelled(boolean cancelled) voidsetMessage(String message) Change the message thatgetPlayer()has sentMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
StaffChatEvent
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player who executed the /staffchat command.- Returns:
- player who used /staffchat
-
getMessage
The message thatgetPlayer()has provided- Returns:
- Message given in /staffchat
-
setMessage
Change the message thatgetPlayer()has sent- Parameters:
message- new message
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-