mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-27 01:40:48 +08:00
Make sure, we will never give a null as respawn location.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1430 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
9af0566229
commit
fdb9473baa
@ -33,7 +33,11 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
|
||||
catch (Throwable ex)
|
||||
{
|
||||
}
|
||||
event.setRespawnLocation(Essentials.getSpawn().getSpawn(user.getGroup()));
|
||||
Location spawn = Essentials.getSpawn().getSpawn(user.getGroup());
|
||||
if (spawn == null) {
|
||||
return;
|
||||
}
|
||||
event.setRespawnLocation(spawn);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user