1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

debug minetest.register_on_respawnplayer function for special spawn areas

This commit is contained in:
2016-01-08 00:53:14 +01:00
parent 0ad6657a72
commit 40b3e17894
2 changed files with 8 additions and 2 deletions

View File

@ -183,6 +183,11 @@ end)
-- respawn player at bed if enabled and valid position is found
minetest.register_on_respawnplayer(function(player)
--MFF DEBUT crabman(8/01/2016 ) respawn player in special area(event) if a spawn is set.
if ((minetest.get_modpath("areas") ~= nil) and (areas:onRespawn(player))) then
return true
end
if not enable_respawn then
return false
end