From 4b6ee05aff04e7c9123cd8446fe9a5c12015a559 Mon Sep 17 00:00:00 2001 From: shivajiva101 Date: Sun, 13 May 2018 19:10:01 +0100 Subject: [PATCH] adds global messager function adds a function to message a player that they cannot drop tools/nodes registered by maptools --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index 7b9afcd..078ec4b 100644 --- a/init.lua +++ b/init.lua @@ -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")