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.
|
* @return location of the given player if alive, spawn location if dead.
|
||||||
*/
|
*/
|
||||||
public Location getPlayerLocationOrSpawn(Player player) {
|
public Location getPlayerLocationOrSpawn(Player player) {
|
||||||
if (player.isOnline() && player.isDead()) {
|
if (player.getHealth() <= 0.0) {
|
||||||
return getSpawnLocation(player);
|
return getSpawnLocation(player);
|
||||||
}
|
}
|
||||||
return player.getLocation();
|
return player.getLocation();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user