adds global messager function

adds a function to message a player that they cannot drop tools/nodes registered by maptools
This commit is contained in:
shivajiva101
2018-05-13 19:10:01 +01:00
committed by GitHub
parent 740a26485f
commit 4b6ee05aff

View File

@ -20,6 +20,11 @@ maptools.intllib = S
local modpath = minetest.get_modpath("maptools")
maptools.msg = function(player)
local name = player:get_player_name()
minetest.chat_send_player(name, S("[maptools] tools/nodes do not drop!"))
end
dofile(modpath .. "/config.lua")
dofile(modpath .. "/aliases.lua")
dofile(modpath .. "/craftitems.lua")