From e1562e38bfb3dfd634f28c05b67be9d849f9e1c7 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 30 Sep 2012 18:12:36 +0100 Subject: [PATCH] Restore removed tp method, it is used in other plugins. --- Essentials/src/com/earth2me/essentials/Teleport.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/Teleport.java b/Essentials/src/com/earth2me/essentials/Teleport.java index a03a4b74b..6a666a199 100644 --- a/Essentials/src/com/earth2me/essentials/Teleport.java +++ b/Essentials/src/com/earth2me/essentials/Teleport.java @@ -235,6 +235,13 @@ public class Teleport implements Runnable, ITeleport } //The teleport function is used when you want to normally teleport someone to a location or player. + //This method is nolonger used internally and will be removed. + @Deprecated + public void teleport(Location loc, Trade chargeFor) throws Exception + { + teleport(loc, chargeFor, TeleportCause.PLUGIN); + } + public void teleport(Location loc, Trade chargeFor, TeleportCause cause) throws Exception { teleport(new Target(loc), chargeFor, cause);