welcome on github

master
tchncs 2015-12-26 18:00:36 +01:00
commit a74fd33fff
3 changed files with 16 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

14
init.lua Normal file
View File

@ -0,0 +1,14 @@
careLetters = true
DEATH_MSG = "Oh no! %s died too young :("
REVIVE_MSG = "Like a Phoenix %s rises from the ashes."
minetest.register_on_dieplayer( function(player)
minetest.chat_send_all(string.format(DEATH_MSG, player:get_player_name()))
end
)
minetest.register_on_respawnplayer( function(player)
minetest.chat_send_all(string.format(REVIVE_MSG, player:get_player_name()))
end
)

1
readme.md Normal file
View File

@ -0,0 +1 @@
A very, very small mod to send a global message if a player die or come back alive.