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

    Constructors
    Constructor
    Description
    PhoneMessageSentEvent(org.bukkit.entity.Player player, int sourceNumber, int targetNumber, String message)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Get the phone number of the receiver of the message
    org.bukkit.entity.Player
    Get the player who sent the message
    int
    Get the phone number of the owner of the phone
    int
    Get the phone number of the receiver of the message

    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

    • 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

      public String 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 class org.bukkit.event.Event
    • getHandlerList

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