Update init.lua

Added chatcommand for go home(at request of some users)
This commit is contained in:
Ryan 2014-05-04 17:05:31 +01:00
parent fd5bebef75
commit 9ed5046aad
1 changed files with 11 additions and 0 deletions

View File

@ -150,6 +150,17 @@ if creative_inventory then
end
end
-- Added chatcommand for go home(at request of some users)
minetest.register_chatcommand("home", {
params = "";
description = "Send player home.";
privs = {};
func = function ( name, param )
unified_inventory.go_home(minetest.get_player_by_name(name))
end;
});
dofile(modpath.."/api.lua")
dofile(modpath.."/internal.lua")
dofile(modpath.."/callbacks.lua")