1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 03:54:19 +02:00

Don't teleport to offline users.

This commit is contained in:
snowleo
2011-07-20 22:03:15 +02:00
parent cdff1649c3
commit ea221d05c7

View File

@@ -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"));
}