mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-05 01:59:34 +01:00
This commit is contained in:
parent
fc8c9d8748
commit
12cf3aa060
@ -273,7 +273,7 @@ public class SpawnLoader implements Reloadable {
|
||||
* @return location of the given player if alive, spawn location if dead.
|
||||
*/
|
||||
public Location getPlayerLocationOrSpawn(Player player) {
|
||||
if (player.isOnline() && player.isDead()) {
|
||||
if (player.getHealth() <= 0.0) {
|
||||
return getSpawnLocation(player);
|
||||
}
|
||||
return player.getLocation();
|
||||
|
Loading…
Reference in New Issue
Block a user