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:
@@ -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"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user