From aa663c0c98b5677db0e0b34abff11b0f5f3d1529 Mon Sep 17 00:00:00 2001 From: snowleo Date: Wed, 20 Jul 2011 22:03:15 +0200 Subject: Don't teleport to offline users. --- Essentials/src/com/earth2me/essentials/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/Util.java b/Essentials/src/com/earth2me/essentials/Util.java index 2ba7f0eb7..97f051db4 100644 --- a/Essentials/src/com/earth2me/essentials/Util.java +++ b/Essentials/src/com/earth2me/essentials/Util.java @@ -218,7 +218,7 @@ public class Util public static Location getSafeDestination(Location loc) throws Exception { - if (loc == null) + if (loc == null || loc.getWorld() == null) { throw new Exception(Util.i18n("destinationNotSet")); } -- cgit v1.2.3