mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +00:00
Don't teleport to offline users.
This commit is contained in:
parent
bda2f5e615
commit
aa663c0c98
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ public class Util
|
||||||
|
|
||||||
public static Location getSafeDestination(Location loc) throws Exception
|
public static Location getSafeDestination(Location loc) throws Exception
|
||||||
{
|
{
|
||||||
if (loc == null)
|
if (loc == null || loc.getWorld() == null)
|
||||||
{
|
{
|
||||||
throw new Exception(Util.i18n("destinationNotSet"));
|
throw new Exception(Util.i18n("destinationNotSet"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue