mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +02:00
Allow use of deprecated teleport function through interface.
This commit is contained in:
@@ -8,7 +8,7 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
|||||||
|
|
||||||
|
|
||||||
public interface ITeleport
|
public interface ITeleport
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Used to skip teleportPlayer delay when teleporting someone to a location or player.
|
* Used to skip teleportPlayer delay when teleporting someone to a location or player.
|
||||||
*
|
*
|
||||||
@@ -29,6 +29,9 @@ public interface ITeleport
|
|||||||
*/
|
*/
|
||||||
void now(Player entity, boolean cooldown, TeleportCause cause) throws Exception;
|
void now(Player entity, boolean cooldown, TeleportCause cause) throws Exception;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
void teleport(Location loc, Trade chargeFor) throws Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Teleport a player to a specific location
|
* Teleport a player to a specific location
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user