mirror of
https://github.com/minetest-mods/maptools.git
synced 2025-07-05 08:10:22 +02:00
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:
5
init.lua
5
init.lua
@ -20,6 +20,11 @@ maptools.intllib = S
|
|||||||
|
|
||||||
local modpath = minetest.get_modpath("maptools")
|
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 .. "/config.lua")
|
||||||
dofile(modpath .. "/aliases.lua")
|
dofile(modpath .. "/aliases.lua")
|
||||||
dofile(modpath .. "/craftitems.lua")
|
dofile(modpath .. "/craftitems.lua")
|
||||||
|
Reference in New Issue
Block a user