summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-09-30 18:12:36 +0100
committerKHobbits <rob@khobbits.co.uk>2012-09-30 18:15:46 +0100
commite1562e38bfb3dfd634f28c05b67be9d849f9e1c7 (patch)
treeee8dbabf78a99df46f0d8fa03a9efbe3090e408e
parentb850ae93e917b271d13ee64f68b09c4fcbea55ee (diff)
downloadEssentials-e1562e38bfb3dfd634f28c05b67be9d849f9e1c7.tar
Essentials-e1562e38bfb3dfd634f28c05b67be9d849f9e1c7.tar.gz
Essentials-e1562e38bfb3dfd634f28c05b67be9d849f9e1c7.tar.lz
Essentials-e1562e38bfb3dfd634f28c05b67be9d849f9e1c7.tar.xz
Essentials-e1562e38bfb3dfd634f28c05b67be9d849f9e1c7.zip
Restore removed tp method, it is used in other plugins.
-rw-r--r--Essentials/src/com/earth2me/essentials/Teleport.java7
1 files changed, 7 insertions, 0 deletions
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);