Package net.ess3.api.events
Class UserRandomTeleportEvent
java.lang.Object
org.bukkit.event.Event
net.ess3.api.events.UserRandomTeleportEvent
- All Implemented Interfaces:
Cancellable
Called when the player uses the command /tpr
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionUserRandomTeleportEvent
(IUser user, String name, Location center, double minRange, double maxRange) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
double
double
getName()
getUser()
boolean
boolean
void
setCancelled
(boolean b) void
Sets the center location to teleport from.void
setMaxRange
(double maxRange) Sets the maximum range for the teleport.void
setMinRange
(double minRange) Sets the minimum range for the teleport.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
UserRandomTeleportEvent
-
-
Method Details
-
getHandlerList
-
getUser
-
getName
-
getCenter
-
setCenter
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 interfaceCancellable
-
setCancelled
public void setCancelled(boolean b) - Specified by:
setCancelled
in interfaceCancellable
-
isModified
public boolean isModified() -
getHandlers
- Specified by:
getHandlers
in classEvent
-