Added intllib support (thanks Xanthin)
This commit is contained in:
parent
b0c2e6433f
commit
a9981e3518
7 changed files with 154 additions and 43 deletions
10
admin.lua
10
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 = ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue