Class PhoneOpenEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PhoneOpenEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PhoneOpenEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
This event is thrown when someone opened their ATM.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
int
Get the phone number of the phoneorg.bukkit.entity.Player
Get the player who opened the ATMboolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PhoneOpenEvent
public PhoneOpenEvent(org.bukkit.entity.Player player, int phoneNumber)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player who opened the ATM- Returns:
- player who opened ATM
-
getPhoneNumber
public int getPhoneNumber()Get the phone number of the phone- Returns:
- Phonenumber without prefix (e.g. 06-)
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-