Class WalkyTalkyEmergencyButtonEvent

java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.WalkyTalkyEmergencyButtonEvent

public class WalkyTalkyEmergencyButtonEvent extends org.bukkit.event.Event
This event is thrown whenever someone clicks the emergency button in the walky talky.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    WalkyTalkyEmergencyButtonEvent(org.bukkit.entity.Player player, org.bukkit.Location location)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.Location
    Get the location of the player when the button was pressed
    org.bukkit.entity.Player
    Get the player who clicked the emergency button

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • WalkyTalkyEmergencyButtonEvent

      public WalkyTalkyEmergencyButtonEvent(org.bukkit.entity.Player player, org.bukkit.Location location)
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player who clicked the emergency button
      Returns:
      player who clicked the emergency button
    • getLocation

      public org.bukkit.Location getLocation()
      Get the location of the player when the button was pressed
      Returns:
      players location
    • getHandlers

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

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