1
0
Fork 0

Add warning log if players with 0 hp joined

This commit is contained in:
Eliy21 2023-12-05 05:21:39 +00:00
parent 0673fcc25b
commit 3a11fcf67a
1 changed files with 1 additions and 0 deletions

View File

@ -675,6 +675,7 @@ minetest.register_on_joinplayer(function(player)
-- Respawn dead players on joining
if hp <= 0 then
player:respawn()
minetest.log("warning", "Player with 0 hp joined and has been forced to respawn")
end
end)