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:
@ -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
|
||||
|
Reference in New Issue
Block a user