diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-07 20:29:06 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-07 20:29:06 +0100 |
commit | a9981e351816868d92ce8ff826539a3c4fb2fabf (patch) | |
tree | ef4a1a82f213459fa7cc78130aa0f6b539a177ef /admin.lua | |
parent | b0c2e6433f7e6b022b753eeb6e00452db09a797c (diff) |
Added intllib support (thanks Xanthin)
Diffstat (limited to 'admin.lua')
-rw-r--r-- | admin.lua | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,24 +1,26 @@ +local S = protector.intllib + protector.removal_names = "" minetest.register_chatcommand("delprot", { params = "", - description = "Remove Protectors near players with names provided (separate names with spaces)", + description = S("Remove Protectors near players with names provided (separate names with spaces)"), privs = {server = true}, func = function(name, param) if not param or param == "" then minetest.chat_send_player(name, - "Protector Names to remove: " - .. protector.removal_names) + S("Protector Names to remove: %1", + protector.removal_names)) return end if param == "-" then minetest.chat_send_player(name, - "Name List Reset") + S("Name List Reset")) protector.removal_names = "" |