Class PhoneMessageSentEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PhoneMessageSentEvent
public class PhoneMessageSentEvent
extends org.bukkit.event.Event
This event is fired when someone sends a phone message their ATM.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPhoneMessageSentEvent
(org.bukkit.entity.Player player, int sourceNumber, int targetNumber, String message) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Get the phone number of the receiver of the messageorg.bukkit.entity.Player
Get the player who sent the messageint
Get the phone number of the owner of the phoneint
Get the phone number of the receiver of the messageMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PhoneMessageSentEvent
public PhoneMessageSentEvent(org.bukkit.entity.Player player, int sourceNumber, int targetNumber, String message)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player who sent the message- Returns:
- player who sent the message
-
getSourceNumber
public int getSourceNumber()Get the phone number of the owner of the phone- Returns:
- Phonenumber without prefix (e.g. 06-)
-
getTargetNumber
public int getTargetNumber()Get the phone number of the receiver of the message- Returns:
- Phonenumber without prefix (e.g. 06-)
-
getMessage
Get the phone number of the receiver of the message- Returns:
- Message that was sent
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-