From ae7d968f5c87c40a93f02f0cbd109245cb5c1443 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 8 Dec 2011 02:23:44 +0100 Subject: [PATCH] Fix for Towny using an old method. --- Essentials/src/com/earth2me/essentials/Teleport.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/Teleport.java b/Essentials/src/com/earth2me/essentials/Teleport.java index c627279c4..9c21ffc6d 100644 --- a/Essentials/src/com/earth2me/essentials/Teleport.java +++ b/Essentials/src/com/earth2me/essentials/Teleport.java @@ -190,6 +190,11 @@ public class Teleport implements Runnable, ITeleport { cancel(false); } + + public void teleport(Location loc, Trade chargeFor) throws Exception + { + teleport(new Target(loc), chargeFor, TeleportCause.PLUGIN); + } public void teleport(Location loc, Trade chargeFor, TeleportCause cause) throws Exception {