summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-20 22:03:15 +0200
committersnowleo <schneeleo@gmail.com>2011-07-20 22:03:15 +0200
commitaa663c0c98b5677db0e0b34abff11b0f5f3d1529 (patch)
treeb5e9bb59ec99a30f24b5729934007cad49d7ca48
parentbda2f5e6155cd45020f7c2623085c2e5f05b4dc3 (diff)
downloadEssentials-aa663c0c98b5677db0e0b34abff11b0f5f3d1529.tar
Essentials-aa663c0c98b5677db0e0b34abff11b0f5f3d1529.tar.gz
Essentials-aa663c0c98b5677db0e0b34abff11b0f5f3d1529.tar.lz
Essentials-aa663c0c98b5677db0e0b34abff11b0f5f3d1529.tar.xz
Essentials-aa663c0c98b5677db0e0b34abff11b0f5f3d1529.zip
Don't teleport to offline users.
-rw-r--r--Essentials/src/com/earth2me/essentials/Util.java2
1 files changed, 1 insertions, 1 deletions
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"));
}