killme command

master
Fernando Zapata 2012-05-17 19:59:53 -06:00
parent 5aea1bf40f
commit 690632fb98
1 changed files with 16 additions and 0 deletions

16
commands/init.lua Normal file
View File

@ -0,0 +1,16 @@
--------------------------------------------------------------------------------
-- Custom Commands
-- (c)2012 Fernando Zapata
-- 2012-05-12 01:03:30
--------------------------------------------------------------------------------
---- Suicide command ----
minetest.register_chatcommand( 'killme', {
description = 'kill yourself',
func = function( name, param )
local player = minetest.env:get_player_by_name(name)
player:set_hp(0)
end
})
--------------------------------------------------------------------------------