mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-24 08:22:56 +01:00
Don't teleport to offline users.
This commit is contained in:
parent
cdff1649c3
commit
ea221d05c7
@ -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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user