Package com.earth2me.essentials.api
Interface ITeleport
- All Known Subinterfaces:
ITeleport
- All Known Implementing Classes:
Teleport
public interface ITeleport
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
back()
Deprecated.void
Deprecated.void
Deprecated.void
now
(Player entity, boolean cooldown, PlayerTeleportEvent.TeleportCause cause) Deprecated.void
now
(Location loc, boolean cooldown, PlayerTeleportEvent.TeleportCause cause) Deprecated.void
respawn
(Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) Deprecated.void
teleport
(Player entity, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) Deprecated.void
Deprecated.void
teleport
(Location loc, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) Deprecated.void
teleportPlayer
(IUser otherUser, Player entity, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) Deprecated.void
teleportPlayer
(IUser otherUser, Location loc, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) Deprecated.void
warp
(IUser otherUser, String warp, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) Deprecated.
-
Method Details
-
now
@Deprecated void now(Location loc, boolean cooldown, PlayerTeleportEvent.TeleportCause cause) throws Exception Deprecated.Used to skip teleportPlayer delay when teleporting someone to a location or player.- Parameters:
loc
- - Where should the player end upcooldown
- - If cooldown should be enforcedcause
- - The reported teleportPlayer cause- Throws:
Exception
-
now
@Deprecated void now(Player entity, boolean cooldown, PlayerTeleportEvent.TeleportCause cause) throws Exception Deprecated.Used to skip teleportPlayer delay when teleporting someone to a location or player.- Parameters:
entity
- - Where should the player end upcooldown
- - If cooldown should be enforcedcause
- - The reported teleportPlayer cause- Throws:
Exception
-
teleport
Deprecated.Teleport a player to a specific location- Parameters:
loc
- - Where should the player end upchargeFor
- - What the user will be charged if teleportPlayer is successful- Throws:
Exception
-
teleport
@Deprecated void teleport(Location loc, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) throws Exception Deprecated.Teleport a player to a specific location- Parameters:
loc
- - Where should the player end upchargeFor
- - What the user will be charged if teleportPlayer is successfulcause
- - The reported teleportPlayer cause- Throws:
Exception
-
teleport
@Deprecated void teleport(Player entity, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) throws Exception Deprecated.Teleport a player to a specific player- Parameters:
entity
- - Where should the player end upchargeFor
- - What the user will be charged if teleportPlayer is successfulcause
- - The reported teleportPlayer cause- Throws:
Exception
-
teleportPlayer
@Deprecated void teleportPlayer(IUser otherUser, Location loc, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) throws Exception Deprecated.Teleport a player to a specific location- Parameters:
otherUser
- - Which user will be teleportedloc
- - Where should the player end upchargeFor
- - What the user will be charged if teleportPlayer is successfulcause
- - The reported teleportPlayer cause- Throws:
Exception
-
teleportPlayer
@Deprecated void teleportPlayer(IUser otherUser, Player entity, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) throws Exception Deprecated.Teleport a player to a specific player- Parameters:
otherUser
- - Which user will be teleportedentity
- - Where should the player end upchargeFor
- - What the user will be charged if teleportPlayer is successfulcause
- - The reported teleportPlayer cause- Throws:
Exception
-
respawn
Deprecated.Teleport wrapper used to handle tp fallback on /jail and /home- Parameters:
chargeFor
- - What the user will be charged if teleportPlayer is successfulcause
- - The reported teleportPlayer cause- Throws:
Exception
-
warp
@Deprecated void warp(IUser otherUser, String warp, Trade chargeFor, PlayerTeleportEvent.TeleportCause cause) throws Exception Deprecated.Teleport wrapper used to handle /warp teleports- Parameters:
otherUser
- - Which user will be teleportedwarp
- - The name of the warp the user will be teleported too.chargeFor
- - What the user will be charged if teleportPlayer is successfulcause
- - The reported teleportPlayer cause- Throws:
Exception
-
back
Deprecated.Teleport wrapper used to handle /back teleports- Parameters:
chargeFor
- - What the user will be charged if teleportPlayer is successful- Throws:
Exception
-
back
Deprecated.Teleport wrapper used to handle /back teleports that are executed by a different player with this instance of teleport as a target.- Parameters:
teleporter
- - The user performing the /back command. This value may benull
to indicate console.chargeFor
- - What theteleporter
will be charged if teleportPlayer is successful- Throws:
Exception
-
back
Deprecated.Teleport wrapper used to handle throwing user home after a jail sentence- Throws:
Exception
-
IAsyncTeleport
.