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
ConstructorDescriptionWalkyTalkyEmergencyButtonEvent
(org.bukkit.entity.Player player, org.bukkit.Location location) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.Location
Get the location of the player when the button was pressedorg.bukkit.entity.Player
Get the player who clicked the emergency buttonMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-