From 3538728733e035c532c1fef3835761610d3916ce Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 23 Mar 2014 18:12:33 +0000 Subject: Fix null teleport costs. --- Essentials/src/com/earth2me/essentials/TimedTeleport.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/TimedTeleport.java b/Essentials/src/com/earth2me/essentials/TimedTeleport.java index 1b972c17c..e30eff966 100644 --- a/Essentials/src/com/earth2me/essentials/TimedTeleport.java +++ b/Essentials/src/com/earth2me/essentials/TimedTeleport.java @@ -110,7 +110,10 @@ public class TimedTeleport implements Runnable { cancelTimer(false); teleportUser.sendMessage(_("teleportationCommencing")); - timer_chargeFor.isAffordableFor(teleportOwner); + if (timer_chargeFor != null) + { + timer_chargeFor.isAffordableFor(teleportOwner); + } if (timer_respawn) { teleport.respawnNow(teleportUser, timer_cause); -- cgit v1.2.3