mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 19:05:10 +00:00
16 lines
610 B
Lua
16 lines
610 B
Lua
minetest.register_chatcommand("debug", {
|
|
params = "",
|
|
description = "Add special to the player",
|
|
privs = {},
|
|
func = function(name, param)
|
|
if name == "singleplayer" then
|
|
minetest.chat_send_all("/grant singleplayer all")
|
|
local receiverref = core.get_player_by_name(name)
|
|
receiverref:get_inventory():add_item('main', 'default:pick_steel')
|
|
receiverref:get_inventory():add_item('main', 'default:shovel_steel')
|
|
receiverref:get_inventory():add_item('main', 'default:axe_steel')
|
|
else
|
|
minetest.chat_send_player(name, "Only SinglePlayer commande")
|
|
end
|
|
end
|
|
})
|