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)
  • Constructor Details

    • StaffChatEvent

      public StaffChatEvent(org.bukkit.entity.Player player, String message)
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player who executed the /staffchat command.
      Returns:
      player who used /staffchat
    • getMessage

      public String getMessage()
      The message that getPlayer() has provided
      Returns:
      Message given in /staffchat
    • setMessage

      public void setMessage(String message)
      Change the message that getPlayer() has sent
      Parameters:
      message - new message
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable