Class EmergencyCallEvent

java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.EmergencyCallEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class EmergencyCallEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
This event is thrown whenever someone uses /112.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmergencyCallEvent​(org.bukkit.entity.Player player, String message)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    When executing /112 it asks for a message (the 'emergency')
    org.bukkit.entity.Player
    Get the player who executed the /112 command.
    boolean
     
    void
    setCancelled​(boolean cancelled)
     
    void
    setMessage​(String message)
    Change the message used in /112

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EmergencyCallEvent

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

    • getPlayer

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

      public String getMessage()
      When executing /112 it asks for a message (the 'emergency')
      Returns:
      Message given in /112
    • setMessage

      public void setMessage(String message)
      Change the message used in /112
      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