Don't teleport to offline users.

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

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