summaryrefslogtreecommitdiff
path: root/admin.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-06-07 20:29:06 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-06-07 20:29:06 +0100
commita9981e351816868d92ce8ff826539a3c4fb2fabf (patch)
treeef4a1a82f213459fa7cc78130aa0f6b539a177ef /admin.lua
parentb0c2e6433f7e6b022b753eeb6e00452db09a797c (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'admin.lua')
-rw-r--r--admin.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/admin.lua b/admin.lua
index 7844d53..219aff5 100644
--- a/admin.lua
+++ b/admin.lua
@@ -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 = ""