Class UserRandomTeleportEvent

java.lang.Object
org.bukkit.event.Event
net.ess3.api.events.UserRandomTeleportEvent
All Implemented Interfaces:
Cancellable

public class UserRandomTeleportEvent extends Event implements Cancellable
Called when the player uses the command /tpr
  • Constructor Details

    • UserRandomTeleportEvent

      public UserRandomTeleportEvent(IUser user, String name, Location center, double minRange, double maxRange)
  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getUser

      public IUser getUser()
    • getName

      public String getName()
    • getCenter

      public Location getCenter()
    • setCenter

      public void setCenter(Location center)
      Sets the center location to teleport from.
      Parameters:
      center - Center location.
    • getMinRange

      public double getMinRange()
    • setMinRange

      public void setMinRange(double minRange)
      Sets the minimum range for the teleport.
      Parameters:
      minRange - Minimum range.
    • getMaxRange

      public double getMaxRange()
    • setMaxRange

      public void setMaxRange(double maxRange)
      Sets the maximum range for the teleport.
      Parameters:
      maxRange - Maximum range.
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean b)
      Specified by:
      setCancelled in interface Cancellable
    • isModified

      public boolean isModified()
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event