diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-20 22:03:15 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-20 22:03:15 +0200 |
commit | aa663c0c98b5677db0e0b34abff11b0f5f3d1529 (patch) | |
tree | b5e9bb59ec99a30f24b5729934007cad49d7ca48 | |
parent | bda2f5e6155cd45020f7c2623085c2e5f05b4dc3 (diff) | |
download | Essentials-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.java | 2 |
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")); } |