merge https://notabug.org/TenPlus1/protector and resolve conflicts
commit
2b1f685a30
20
README.md
20
README.md
|
@ -55,6 +55,12 @@ Change log:
|
|||
- 2.5 - Added HUD text to show when player is inside a protected area (updates every 5 seconds)
|
||||
- 2.6 - Add protection against CSM tampering, updated Intllib support (thanks codexp), tweaked block textures
|
||||
- 2.7 - Remove protection field entity when protector has been dug
|
||||
- 2.8 - Added 'protector_show_interval' setting to minetest.conf [default is 5], make protection field glow in dark.
|
||||
- 2.9 - Added MineClone2 recipes for protection block but no official support as yet
|
||||
- 3.0 - Added PlayerFactions support, 'protector_hud_interval' setting and listing in advanced settings for mod values.
|
||||
- 3.1 - Ability to hide protection blocks using /protector_hide and /protector_show , italian local added (thanks Hamlet)
|
||||
- 3.2 - Defaults to Minetest translation if found, otherwise intllib fallback if loaded, locale files updated for both. Added 'protector_msg' setting for player text.
|
||||
- 3.3 - Added support for playerfactions new api (thanks louisroyer), added limiter to protection radius of 22.
|
||||
|
||||
Lucky Blocks: 10
|
||||
|
||||
|
@ -91,6 +97,11 @@ reset name list
|
|||
|
||||
|
||||
show protected areas of your nearby protectors (max of 5)
|
||||
/protector_show_area
|
||||
|
||||
|
||||
A players own protection blocks can be hidden and shown using the following:
|
||||
/protector_hide
|
||||
/protector_show
|
||||
|
||||
|
||||
|
@ -114,6 +125,15 @@ protector_hurt = 2
|
|||
protector_flip = true
|
||||
- When true players who dig inside a protected area will flipped around to stop them using lag to grief into someone else's build
|
||||
|
||||
protector_show_interval
|
||||
- Number of seconds the protection field is visible, defaults to 5 seconds.
|
||||
|
||||
protector_recipe = true
|
||||
- When true allows players to craft protection blocks
|
||||
|
||||
protector_msg = true
|
||||
- When true shows protection messages in players chat when trying to interact in someone else's area
|
||||
|
||||
|
||||
Protector Tool
|
||||
|
||||
|
|
105
admin.lua
105
admin.lua
|
@ -29,7 +29,6 @@ minetest.register_chatcommand("protector_remove", {
|
|||
end
|
||||
|
||||
removal_names = param
|
||||
|
||||
end,
|
||||
})
|
||||
|
||||
|
@ -57,14 +56,13 @@ minetest.register_chatcommand("protector_replace", {
|
|||
local names = replace_names:split(" ")
|
||||
|
||||
minetest.chat_send_player(name,
|
||||
S("Replacing Protector name '@1' with '@2'",
|
||||
S("Replacing Protector name @1 with @2",
|
||||
names[1] or "", names[2] or ""))
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
replace_names = param
|
||||
|
||||
end,
|
||||
})
|
||||
|
||||
|
@ -106,7 +104,6 @@ minetest.register_abm({
|
|||
meta:set_string("owner", names[2])
|
||||
meta:set_string("infotext", S("Protection (owned by @1)", names[2]))
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -115,7 +112,7 @@ minetest.register_abm({
|
|||
local r = tonumber(minetest.settings:get("protector_radius")) or 5
|
||||
|
||||
-- show protection areas of nearby protectors owned by you (thanks agaran)
|
||||
minetest.register_chatcommand("protector_show", {
|
||||
minetest.register_chatcommand("protector_show_area", {
|
||||
params = "",
|
||||
description = S("Show protected areas of your nearby protectors"),
|
||||
privs = {},
|
||||
|
@ -138,9 +135,105 @@ minetest.register_chatcommand("protector_show", {
|
|||
meta = minetest.get_meta(pos[n])
|
||||
owner = meta:get_string("owner") or ""
|
||||
|
||||
if owner == name then
|
||||
if owner == name
|
||||
or minetest.check_player_privs(name, {protection_bypass = true}) then
|
||||
minetest.add_entity(pos[n], "protector:display")
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
-- ability to hide protection blocks (borrowed from doors mod :)
|
||||
minetest.register_node("protector:protect_hidden", {
|
||||
description = "Hidden Protector",
|
||||
drawtype = "airlike",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
-- has to be walkable for falling nodes to stop falling
|
||||
walkable = true,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = false,
|
||||
floodable = false,
|
||||
drop = "",
|
||||
groups = {not_in_creative_inventory = 1, unbreakable = 1},
|
||||
on_blast = function() end,
|
||||
-- 1px block inside door hinge near node top
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {-15/32, 13/32, -15/32, -13/32, 1/2, -13/32},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_chatcommand("protector_show", {
|
||||
params = "",
|
||||
description = S("Show your nearby protection blocks"),
|
||||
privs = {interact = true},
|
||||
|
||||
func = function(name, param)
|
||||
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
||||
if not player then
|
||||
return false, "Player not found"
|
||||
end
|
||||
|
||||
local pos = player:get_pos()
|
||||
|
||||
local a = minetest.find_nodes_in_area(
|
||||
{x = pos.x - r, y = pos.y - r, z = pos.z - r},
|
||||
{x = pos.x + r, y = pos.y + r, z = pos.z + r},
|
||||
{"protector:protect_hidden"})
|
||||
|
||||
local meta, owner
|
||||
|
||||
for _, row in pairs(a) do
|
||||
|
||||
meta = minetest.get_meta(row)
|
||||
owner = meta:get_string("owner") or ""
|
||||
|
||||
if owner == name
|
||||
or minetest.check_player_privs(name, {protection_bypass = true}) then
|
||||
minetest.swap_node(row, {name = "protector:protect"})
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("protector_hide", {
|
||||
params = "",
|
||||
description = S("Hide your nearby protection blocks"),
|
||||
privs = {interact = true},
|
||||
|
||||
func = function(name, param)
|
||||
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
||||
if not player then
|
||||
return false, "Player not found"
|
||||
end
|
||||
|
||||
local pos = player:get_pos()
|
||||
|
||||
local a = minetest.find_nodes_in_area(
|
||||
{x = pos.x - r, y = pos.y - r, z = pos.z - r},
|
||||
{x = pos.x + r, y = pos.y + r, z = pos.z + r},
|
||||
{"protector:protect", "protector:protect2"})
|
||||
|
||||
local meta, owner
|
||||
|
||||
for _, row in pairs(a) do
|
||||
|
||||
meta = minetest.get_meta(row)
|
||||
owner = meta:get_string("owner") or ""
|
||||
|
||||
if owner == name
|
||||
or minetest.check_player_privs(name, {protection_bypass = true}) then
|
||||
minetest.swap_node(row, {name = "protector:protect_hidden"})
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
default
|
||||
default?
|
||||
intllib?
|
||||
lucky_block?
|
||||
mesecons_mvps?
|
||||
playerfactions?
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
local S = protector.intllib
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
-- MineClone2 support
|
||||
local mcl = not minetest.registered_items["default:steel_ingot"]
|
||||
|
||||
-- Registers a door
|
||||
function register_door(name, def)
|
||||
def.groups.not_in_creative_inventory = 1
|
||||
|
@ -310,6 +313,14 @@ register_door(name, {
|
|||
sunlight = false,
|
||||
})
|
||||
|
||||
if mcl then
|
||||
minetest.register_craft({
|
||||
output = name,
|
||||
recipe = {
|
||||
{"mcl_doors:wooden_door", "mcl_core:gold_ingot"}
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = name,
|
||||
recipe = {
|
||||
|
@ -325,6 +336,7 @@ minetest.register_craft({
|
|||
{"doors:door_wood", "default:copper_ingot"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Protected Steel Door
|
||||
|
||||
|
@ -343,6 +355,14 @@ register_door(name, {
|
|||
sunlight = false,
|
||||
})
|
||||
|
||||
if mcl then
|
||||
minetest.register_craft({
|
||||
output = name,
|
||||
recipe = {
|
||||
{"mcl_doors:iron_door", "mcl_core:gold_ingot"}
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = name,
|
||||
recipe = {
|
||||
|
@ -358,6 +378,7 @@ minetest.register_craft({
|
|||
{"doors:door_steel", "default:copper_ingot"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
----trapdoor----
|
||||
|
||||
|
@ -408,8 +429,8 @@ function register_trapdoor(name, def)
|
|||
fixed = {-0.5, -0.5, 6/16, 0.5, 0.5, 0.5}
|
||||
}
|
||||
def_opened.tiles = { def.tile_side, def.tile_side,
|
||||
def.tile_side .. '^[transform3',
|
||||
def.tile_side .. '^[transform1',
|
||||
def.tile_side .. "^[transform3",
|
||||
def.tile_side .. "^[transform1",
|
||||
def.tile_front, def.tile_front }
|
||||
|
||||
def_opened.drop = name_closed
|
||||
|
@ -434,12 +455,19 @@ register_trapdoor("protector:trapdoor", {
|
|||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
if mcl then
|
||||
minetest.register_craft({
|
||||
output = 'protector:trapdoor 2',
|
||||
output = "protector:trapdoor",
|
||||
recipe = {
|
||||
{'group:wood', 'default:copper_ingot', 'group:wood'},
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{'', '', ''},
|
||||
{"mcl_doors:trapdoor", "mcl_core:gold_ingot"}
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "protector:trapdoor 2",
|
||||
recipe = {
|
||||
{"group:wood", "default:copper_ingot", "group:wood"},
|
||||
{"group:wood", "group:wood", "group:wood"},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -449,6 +477,7 @@ minetest.register_craft({
|
|||
{"doors:trapdoor", "default:copper_ingot"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Protected Steel Trapdoor
|
||||
|
||||
|
@ -465,11 +494,19 @@ register_trapdoor("protector:trapdoor_steel", {
|
|||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
if mcl then
|
||||
minetest.register_craft({
|
||||
output = 'protector:trapdoor_steel',
|
||||
output = "protector:trapdoor_steel",
|
||||
recipe = {
|
||||
{'default:copper_ingot', 'default:steel_ingot'},
|
||||
{'default:steel_ingot', 'default:steel_ingot'},
|
||||
{"mcl_doors:iron_trapdoor", "mcl_core:gold_ingot"}
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "protector:trapdoor_steel",
|
||||
recipe = {
|
||||
{"default:copper_ingot", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -479,6 +516,7 @@ minetest.register_craft({
|
|||
{"doors:trapdoor_steel", "default:copper_ingot"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Protected Chest
|
||||
|
||||
|
@ -520,20 +558,23 @@ minetest.register_node("protector:chest", {
|
|||
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
|
||||
minetest.log("action", S("@1 moves stuff to protected chest at @2",
|
||||
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" moves stuff to protected chest at " ..
|
||||
minetest.pos_to_string(pos))
|
||||
end,
|
||||
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
|
||||
minetest.log("action", S("@1 takes stuff from protected chest at @2",
|
||||
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" takes stuff from protected chest at " ..
|
||||
minetest.pos_to_string(pos))
|
||||
end,
|
||||
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
|
||||
minetest.log("action", S("@1 moves stuff inside protected chest at @2",
|
||||
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" moves stuff inside protected chest at " ..
|
||||
minetest.pos_to_string(pos))
|
||||
end,
|
||||
|
||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
|
@ -577,9 +618,9 @@ minetest.register_node("protector:chest", {
|
|||
|
||||
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
|
||||
local formspec = "size[8,9]"
|
||||
.. default.gui_bg
|
||||
.. default.gui_bg_img
|
||||
.. default.gui_slots
|
||||
-- .. default.gui_bg
|
||||
-- .. default.gui_bg_img
|
||||
-- .. default.gui_slots
|
||||
.. "list[nodemeta:".. spos .. ";main;0,0.3;8,4;]"
|
||||
.. "button[0,4.5;2,0.25;toup;" .. F(S("To Chest")) .. "]"
|
||||
.. "field[2.3,4.8;4,0.25;chestname;;"
|
||||
|
@ -672,18 +713,27 @@ end)
|
|||
|
||||
-- Protected Chest recipes
|
||||
|
||||
if mcl then
|
||||
minetest.register_craft({
|
||||
output = 'protector:chest',
|
||||
output = "protector:chest",
|
||||
recipe = {
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{'group:wood', 'default:copper_ingot', 'group:wood'},
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{"mcl_chests:chest", "mcl_core:gold_ingot"},
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "protector:chest",
|
||||
recipe = {
|
||||
{"group:wood", "group:wood", "group:wood"},
|
||||
{"group:wood", "default:copper_ingot", "group:wood"},
|
||||
{"group:wood", "group:wood", "group:wood"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'protector:chest',
|
||||
output = "protector:chest",
|
||||
recipe = {
|
||||
{'default:chest', 'default:copper_ingot', ''},
|
||||
{"default:chest", "default:copper_ingot"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
|
20
hud.lua
20
hud.lua
|
@ -1,13 +1,19 @@
|
|||
local S = protector.intllib
|
||||
local radius = (tonumber(minetest.settings:get("protector_radius")) or 5)
|
||||
|
||||
-- radius limiter (minetest cannot handle node volume of more than 4096000)
|
||||
if radius > 22 then radius = 22 end
|
||||
|
||||
local hud = {}
|
||||
local hud_timer = 0
|
||||
local hud_interval = (tonumber(minetest.settings:get("protector_hud_interval")) or 5)
|
||||
|
||||
if hud_interval > 0 then
|
||||
minetest.register_globalstep(function(dtime)
|
||||
|
||||
-- every 5 seconds
|
||||
hud_timer = hud_timer + dtime
|
||||
if hud_timer < 5 then
|
||||
if hud_timer < hud_interval then
|
||||
return
|
||||
end
|
||||
hud_timer = 0
|
||||
|
@ -56,17 +62,15 @@ minetest.register_globalstep(function(dtime)
|
|||
hud_elem_type = "text",
|
||||
name = "Protector Area",
|
||||
number = hud_text_color,
|
||||
position = {x=0, y=0.95},
|
||||
offset = {x=8, y=-8},
|
||||
position = {x = 0, y = 0.95},
|
||||
offset = {x = 8, y = -8},
|
||||
text = hud_text,
|
||||
scale = {x=200, y=60},
|
||||
alignment = {x=1, y=-1},
|
||||
scale = {x = 200, y = 60},
|
||||
alignment = {x = 1, y = -1},
|
||||
})
|
||||
|
||||
return
|
||||
|
||||
else
|
||||
|
||||
player:hud_change(hud[name].id, "text", hud_text)
|
||||
player:hud_change(hud[name].id, "number", hud_text_color)
|
||||
end
|
||||
|
@ -76,3 +80,5 @@ end)
|
|||
minetest.register_on_leaveplayer(function(player)
|
||||
hud[player:get_player_name()] = nil
|
||||
end)
|
||||
|
||||
end
|
||||
|
|
189
init.lua
189
init.lua
|
@ -1,14 +1,27 @@
|
|||
|
||||
-- default support (for use with MineClone2 and other [games]
|
||||
default = default or {
|
||||
node_sound_stone_defaults = function(table) end,
|
||||
node_sound_wood_defaults = function(table) end,
|
||||
gui_bg = "",
|
||||
gui_bg_img = "",
|
||||
gui_slots = "",
|
||||
}
|
||||
|
||||
-- Load support for intllib.
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S = dofile(MP .. "/intllib.lua")
|
||||
local F = minetest.formspec_escape
|
||||
local S = minetest.get_translator and minetest.get_translator("protector") or
|
||||
dofile(MP .. "/intllib.lua")
|
||||
|
||||
-- Load support for factions
|
||||
local factions_available = minetest.global_exists("factions")
|
||||
|
||||
protector = {}
|
||||
protector.mod = "redo"
|
||||
protector.modpath = MP
|
||||
protector.intllib = S
|
||||
protector = {
|
||||
mod = "redo",
|
||||
modpath = MP,
|
||||
intllib = S
|
||||
}
|
||||
|
||||
local protector_max_share_count = 12
|
||||
-- get minetest.conf settings
|
||||
|
@ -17,6 +30,13 @@ local protector_flip = minetest.settings:get_bool("protector_flip") or false
|
|||
local protector_hurt = tonumber(minetest.settings:get("protector_hurt")) or 0
|
||||
local protector_spawn = tonumber(minetest.settings:get("protector_spawn")
|
||||
or minetest.settings:get("protector_pvp_spawn")) or 0
|
||||
local protector_show = tonumber(minetest.settings:get("protector_show_interval")) or 5
|
||||
local protector_recipe = minetest.settings:get_bool("protector_recipe") ~= false
|
||||
local protector_msg = minetest.settings:get_bool("protector_msg") ~= false
|
||||
|
||||
-- radius limiter (minetest cannot handle node volume of more than 4096000)
|
||||
if protector_radius > 22 then protector_radius = 22 end
|
||||
|
||||
|
||||
-- get static spawn position
|
||||
local statspawn = minetest.string_to_pos(minetest.settings:get("static_spawnpoint"))
|
||||
|
@ -45,7 +65,35 @@ end
|
|||
|
||||
|
||||
-- check for member name
|
||||
local is_member = function (meta, name)
|
||||
local is_member = function(meta, name)
|
||||
|
||||
if factions_available
|
||||
and meta:get_int("faction_members") == 1 then
|
||||
|
||||
if factions.version == nil then
|
||||
|
||||
-- backward compatibility
|
||||
if factions.get_player_faction(name) ~= nil
|
||||
and factions.get_player_faction(meta:get_string("owner")) ==
|
||||
factions.get_player_faction(name) then
|
||||
return true
|
||||
end
|
||||
else
|
||||
-- is member if player and owner share at least one faction
|
||||
local owner_factions = factions.get_player_factions(name)
|
||||
local owner = meta:get_string("owner")
|
||||
|
||||
if owner_factions ~= nil and owner_factions ~= false then
|
||||
|
||||
for _, f in ipairs(owner_factions) do
|
||||
|
||||
if factions.player_is_in_faction(f, owner) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, n in pairs(get_member_list(meta)) do
|
||||
|
||||
|
@ -117,6 +165,36 @@ local protector_formspec = function(meta)
|
|||
local members = get_member_list(meta)
|
||||
local npp = protector_max_share_count -- max users added to protector list
|
||||
local i = 0
|
||||
local checkbox_faction = false
|
||||
|
||||
-- Display the checkbox only if the owner is member of at least 1 faction
|
||||
if factions_available then
|
||||
|
||||
if factions.version == nil then
|
||||
|
||||
-- backward compatibility
|
||||
if factions.get_player_faction(meta:get_string("owner")) then
|
||||
checkbox_faction = true
|
||||
end
|
||||
else
|
||||
if factions.get_player_factions(meta:get_string("owner")) ~= nil then
|
||||
if next(factions.get_player_faction(meta:get_string("owner"))) then
|
||||
checkbox_faction = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if checkbox_faction then
|
||||
|
||||
formspec = formspec .. "checkbox[0,5;faction_members;"
|
||||
.. F(S("Allow faction access"))
|
||||
.. ";" .. (meta:get_int("faction_members") == 1 and
|
||||
"true" or "false") .. "]"
|
||||
|
||||
if npp > 8 then
|
||||
npp = 8
|
||||
end
|
||||
end
|
||||
|
||||
for n = 1, #members do
|
||||
|
||||
|
@ -174,6 +252,18 @@ local inside_spawn = function(pos, radius)
|
|||
end
|
||||
|
||||
|
||||
-- show protection message if enabled
|
||||
local show_msg = function(player, msg)
|
||||
|
||||
-- if messages disabled or no player name provided
|
||||
if protector_msg == false or not player or player == "" then
|
||||
return
|
||||
end
|
||||
|
||||
minetest.chat_send_player(player, msg)
|
||||
end
|
||||
|
||||
|
||||
-- Infolevel:
|
||||
-- 0 for no info
|
||||
-- 1 for "This area is owned by <owner> !" if you can't dig
|
||||
|
@ -197,7 +287,7 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel)
|
|||
-- is spawn area protected ?
|
||||
if inside_spawn(pos, protector_spawn) then
|
||||
|
||||
minetest.chat_send_player(digger,
|
||||
show_msg(digger,
|
||||
S("Spawn @1 has been protected up to a @2 block radius.",
|
||||
minetest.pos_to_string(statspawn), protector_spawn))
|
||||
return false
|
||||
|
@ -228,7 +318,7 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel)
|
|||
if onlyowner or not is_member(meta, digger) then
|
||||
|
||||
if not is_pvp then
|
||||
minetest.chat_send_player(digger, S("This area is owned by @1", owner) .. "!")
|
||||
show_msg(digger, S("This area is owned by @1", owner) .. "!")
|
||||
end
|
||||
return false, is_pvp
|
||||
end
|
||||
|
@ -282,7 +372,11 @@ function minetest.is_protected(pos, digger)
|
|||
|
||||
-- hurt player if protection violated
|
||||
if protector_hurt > 0 and player:get_hp() > 0 then
|
||||
player:set_hp(player:get_hp() - protector_hurt)
|
||||
|
||||
-- This delay fixes item duplication bug (thanks luk3yx)
|
||||
minetest.after(0.1, function()
|
||||
player:set_hp(player:get_hp() - protector_hurt)
|
||||
end)
|
||||
end
|
||||
|
||||
-- flip player when protection violated
|
||||
|
@ -356,6 +450,20 @@ local check_overlap = function(itemstack, placer, pointed_thing)
|
|||
end
|
||||
|
||||
|
||||
-- remove protector display entities
|
||||
local del_display = function(pos)
|
||||
|
||||
local objects = minetest.get_objects_inside_radius(pos, 0.5)
|
||||
|
||||
for _, v in ipairs(objects) do
|
||||
|
||||
if v and v:get_luaentity()
|
||||
and v:get_luaentity().name == "protector:display" then
|
||||
v:remove()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- temporary pos store
|
||||
local player_pos = {}
|
||||
|
||||
|
@ -457,9 +565,10 @@ minetest.register_node("protector:protect", {
|
|||
local meta = minetest.get_meta(pos)
|
||||
|
||||
meta:set_string("owner", placer:get_player_name() or "")
|
||||
meta:set_string("infotext", S("Protection (owned by @1)", meta:get_string("owner")))
|
||||
meta:set_string("members", "")
|
||||
meta:set_int("is_pvp", 0)
|
||||
meta:set_string("infotext",
|
||||
S("Protection (owned by @1)", meta:get_string("owner")))
|
||||
end,
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
@ -468,7 +577,8 @@ minetest.register_node("protector:protect", {
|
|||
return
|
||||
end
|
||||
|
||||
protector.can_dig(protector_radius, pointed_thing.under, user:get_player_name(), false, 2)
|
||||
protector.can_dig(protector_radius, pointed_thing.under,
|
||||
user:get_player_name(), false, 2)
|
||||
end,
|
||||
|
||||
on_rightclick = function(pos, node, clicker, itemstack)
|
||||
|
@ -501,12 +611,7 @@ minetest.register_node("protector:protect", {
|
|||
|
||||
on_blast = function() end,
|
||||
|
||||
after_destruct = function(pos, oldnode)
|
||||
local objects = minetest.get_objects_inside_radius(pos, 0.5)
|
||||
for _, v in ipairs(objects) do
|
||||
v:remove()
|
||||
end
|
||||
end,
|
||||
after_destruct = del_display
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -518,6 +623,31 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
-- default recipe and alternative for MineClone2
|
||||
if protector_recipe then
|
||||
|
||||
if minetest.registered_items["default:stone"] then
|
||||
|
||||
minetest.register_craft({
|
||||
output = "protector:protect",
|
||||
recipe = {
|
||||
{"default:stone", "default:stone", "default:stone"},
|
||||
{"default:stone", "default:gold_ingot", "default:stone"},
|
||||
{"default:stone", "default:stone", "default:stone"},
|
||||
}
|
||||
})
|
||||
else
|
||||
|
||||
minetest.register_craft({
|
||||
output = "protector:protect",
|
||||
recipe = {
|
||||
{"mcl_core:stone", "mcl_core:stone", "mcl_core:stone"},
|
||||
{"mcl_core:stone", "mcl_core:gold_ingot", "mcl_core:stone"},
|
||||
{"mcl_core:stone", "mcl_core:stone", "mcl_core:stone"},
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
-- protection logo
|
||||
minetest.register_node("protector:protect2", {
|
||||
|
@ -549,9 +679,10 @@ minetest.register_node("protector:protect2", {
|
|||
local meta = minetest.get_meta(pos)
|
||||
|
||||
meta:set_string("owner", placer:get_player_name() or "")
|
||||
meta:set_string("infotext", S("Protection (owned by @1)", meta:get_string("owner")))
|
||||
meta:set_string("members", "")
|
||||
meta:set_int("is_pvp", 0)
|
||||
meta:set_string("infotext",
|
||||
S("Protection (owned by @1)", meta:get_string("owner")))
|
||||
end,
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
@ -560,7 +691,8 @@ minetest.register_node("protector:protect2", {
|
|||
return
|
||||
end
|
||||
|
||||
protector.can_dig(protector_radius, pointed_thing.under, user:get_player_name(), false, 2)
|
||||
protector.can_dig(protector_radius, pointed_thing.under,
|
||||
user:get_player_name(), false, 2)
|
||||
end,
|
||||
|
||||
on_rightclick = function(pos, node, clicker, itemstack)
|
||||
|
@ -593,12 +725,7 @@ minetest.register_node("protector:protect2", {
|
|||
|
||||
on_blast = function() end,
|
||||
|
||||
after_destruct = function(pos, oldnode)
|
||||
local objects = minetest.get_objects_inside_radius(pos, 0.5)
|
||||
for _, v in ipairs(objects) do
|
||||
v:remove()
|
||||
end
|
||||
end,
|
||||
after_destruct = del_display
|
||||
})
|
||||
|
||||
-- recipes to switch between protectors
|
||||
|
@ -914,6 +1041,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
return
|
||||
end
|
||||
|
||||
-- add faction members
|
||||
if factions_available then
|
||||
meta:set_int("faction_members", fields.faction_members == "true" and 1 or 0)
|
||||
end
|
||||
|
||||
-- add member [+]
|
||||
if add_member_input then
|
||||
|
||||
|
@ -943,16 +1075,17 @@ minetest.register_entity("protector:display", {
|
|||
collisionbox = {0, 0, 0, 0, 0, 0},
|
||||
visual = "wielditem",
|
||||
-- wielditem seems to be scaled to 1.5 times original node size
|
||||
visual_size = {x = 1.0 / 1.5, y = 1.0 / 1.5},
|
||||
visual_size = {x = 0.67, y = 0.67},
|
||||
textures = {"protector:display_node"},
|
||||
timer = 0,
|
||||
glow = 10,
|
||||
|
||||
on_step = function(self, dtime)
|
||||
|
||||
self.timer = self.timer + dtime
|
||||
|
||||
-- remove after 5 seconds
|
||||
if self.timer > 5 then
|
||||
-- remove after set number of seconds
|
||||
if self.timer > protector_show then
|
||||
self.object:remove()
|
||||
end
|
||||
end,
|
||||
|
|
16
locale/de.po
16
locale/de.po
|
@ -19,10 +19,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: admin.lua
|
||||
#, fuzzy
|
||||
msgid "Remove Protectors around players (separate names with spaces)"
|
||||
msgstr ""
|
||||
"Entferne Störschützer von bestimmten Namen in der Nähe von Spielern (trenne "
|
||||
msgstr "Entferne Störschützer von bestimmten Namen in der Nähe von Spielern (trenne "
|
||||
"Namen durch Leerzeichen)"
|
||||
|
||||
#: admin.lua
|
||||
|
@ -73,18 +71,6 @@ msgstr "Geschützte Stahlfalltür"
|
|||
msgid "Protected Chest"
|
||||
msgstr "Geschützte Truhe"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff to protected chest at @2"
|
||||
msgstr "@1 verlagert Dinge in geschützte Truhe bei @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 takes stuff from protected chest at @2"
|
||||
msgstr "@1 nimmt Dinge aus geschützter Truhe bei @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff inside protected chest at @2"
|
||||
msgstr "@1 verschiebt Dinge innerhalb der geschützten Truhe bei @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Chest"
|
||||
msgstr "Zur Truhe"
|
||||
|
|
|
@ -0,0 +1,177 @@
|
|||
# Spanish translation for PROTECTOR MOD.
|
||||
# Copyright (C) 2018 universales
|
||||
# This file is distributed under the same license as the PROTECTOR MOD package.
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROTECTOR MOD\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-07-10 17:33+0200\n"
|
||||
"PO-Revision-Date: 2020-02-27\n"
|
||||
"Last-Translator: Universales\n"
|
||||
"Language-Team: \n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Remove Protectors around players (separate names with spaces)"
|
||||
msgstr "Eliminar protectores alrededor de los jugadores (nombres separados con espacios)"
|
||||
|
||||
#: admin.lua
|
||||
msgid "<names list>"
|
||||
msgstr "<Lista de nombres>"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Replace Protector Owner with name provided"
|
||||
msgstr "Reemplace el propietario del protector con el nombre proporcionado"
|
||||
|
||||
#: admin.lua
|
||||
msgid "<owner name> <name to replace with>"
|
||||
msgstr "<Nombre del propietario> <Nombre del nuevo propietario>"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Replacing Protector name '@1' with '@2'"
|
||||
msgstr "Reemplazando el nombre del protector '@1' a '@2'"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Show protected areas of your nearby protectors"
|
||||
msgstr "Mostrar áreas protegidas de sus protectores cercanos"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Protector Names to remove: @1"
|
||||
msgstr "Nombres de protectores para eliminar: @1"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Name List Reset"
|
||||
msgstr "Restablecer lista de nombres"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Wooden Door"
|
||||
msgstr "Puerta de madera protegida"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Steel Door"
|
||||
msgstr "Puerta de hierro protegida"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Trapdoor"
|
||||
msgstr "Trampilla Protegida"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Steel Trapdoor"
|
||||
msgstr "Trampilla de hierro protegida"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Chest"
|
||||
msgstr "Cofre protegido"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Chest"
|
||||
msgstr "Al cofre"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Inventory"
|
||||
msgstr "Al inventario"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Chest (@1)"
|
||||
msgstr "Cofre protegido (@1)"
|
||||
|
||||
#: init.lua
|
||||
msgid "-- Protector interface --"
|
||||
msgstr "-- Interfaz del protector --"
|
||||
|
||||
#: init.lua
|
||||
msgid "PUNCH node to show protected area"
|
||||
msgstr "nodo de perforación para mostrar el área protegida"
|
||||
|
||||
#: init.lua
|
||||
msgid "USE for area check"
|
||||
msgstr "Usar para chequeo del área"
|
||||
|
||||
#: init.lua
|
||||
msgid "Members:"
|
||||
msgstr "Miembros:"
|
||||
|
||||
#: init.lua
|
||||
msgid "Close"
|
||||
msgstr "Cerrar"
|
||||
|
||||
#: init.lua
|
||||
msgid "Protection located at: @1"
|
||||
msgstr "Protección ubicada en: @1"
|
||||
|
||||
#: init.lua
|
||||
msgid "Members: @1."
|
||||
msgstr "Miembros: @1."
|
||||
|
||||
#: init.lua
|
||||
msgid "This area is not protected."
|
||||
msgstr "Esta área no está protegida."
|
||||
|
||||
#: init.lua
|
||||
msgid "You can build here."
|
||||
msgstr "Puedes construir aquí."
|
||||
|
||||
#: init.lua tool.lua
|
||||
msgid "Overlaps into above players protected area"
|
||||
msgstr "Se superpone en el área protegida de los jugadores anteriores"
|
||||
|
||||
#: init.lua
|
||||
msgid "Protection Block"
|
||||
msgstr "Bloque de protección"
|
||||
|
||||
#: admin.lua init.lua tool.lua
|
||||
msgid "Protection (owned by @1)"
|
||||
msgstr "Protegido (Propiedad de @1)"
|
||||
|
||||
#: init.lua
|
||||
msgid "Protection Logo"
|
||||
msgstr "Logotipo de la protección"
|
||||
|
||||
#: init.lua
|
||||
msgid "[MOD] Protector Redo loaded"
|
||||
msgstr "[MOD] Protector recargado"
|
||||
|
||||
#: init.lua
|
||||
msgid "Spawn @1 has been protected up to a @2 block radius."
|
||||
msgstr "Spawn @1 ha sido protegido hasta un radio de bloque @2."
|
||||
|
||||
#: init.lua
|
||||
msgid "This area is owned by @1"
|
||||
msgstr "Esta área es propiedad de @1"
|
||||
|
||||
#: pvp.lua
|
||||
msgid "[Protector] on_punchplayer called with nil objects"
|
||||
msgstr "[Protector] on_punchplayer llamado con objetos nulos."
|
||||
|
||||
#: pvp.lua
|
||||
msgid "[Protector] pvp_protect not active, update your version of Minetest"
|
||||
msgstr "[Protector] pvp_protect no está activo, actualiza tu versión de Minetest"
|
||||
|
||||
#: pvp.lua
|
||||
msgid "[Protector] pvp_protect is disabled"
|
||||
msgstr "[Protector] pvp_protect está deshabilitado"
|
||||
|
||||
#: hud.lua
|
||||
msgid "Owner: @1"
|
||||
msgstr "Propietario: @1"
|
||||
|
||||
#: tool.lua
|
||||
msgid "Protector Placer Tool (stand near protector, face direction and use)"
|
||||
msgstr ""
|
||||
"Herramienta de colocación del protector (pararse cerca del protector, dirección de la cara y uso) "
|
||||
|
||||
#: tool.lua
|
||||
msgid "Protector already in place!"
|
||||
msgstr "¡El protector ya está en este lugar!"
|
||||
|
||||
#: tool.lua
|
||||
msgid "No protectors available to place!"
|
||||
msgstr "¡No hay protectores disponibles para colocar!"
|
||||
|
||||
#: tool.lua
|
||||
msgid "Protector placed at @1"
|
||||
msgstr "Protector colocado en @1"
|
17
locale/fr.po
17
locale/fr.po
|
@ -19,10 +19,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: admin.lua
|
||||
#, fuzzy
|
||||
msgid "Remove Protectors around players (separate names with spaces)"
|
||||
msgstr ""
|
||||
"Retirer les protecteurs près des joueurs avec les noms fournis (noms séparés "
|
||||
msgstr "Retirer les protecteurs près des joueurs avec les noms fournis (noms séparés "
|
||||
"avec des espaces)"
|
||||
|
||||
#: admin.lua
|
||||
|
@ -73,19 +71,6 @@ msgstr "Trap en acier protégé"
|
|||
msgid "Protected Chest"
|
||||
msgstr "Coffre protégé"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff to protected chest at @2"
|
||||
msgstr "@1 déplace des objets vers le coffre protégée à @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 takes stuff from protected chest at @2"
|
||||
msgstr "@1 prend des objets du coffre protégée à @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
#, fuzzy
|
||||
msgid "@1 moves stuff inside protected chest at @2"
|
||||
msgstr "@1 déplace des objets à l'intérieur de du coffre protégé à @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Chest"
|
||||
msgstr "Vers le coffre"
|
||||
|
|
|
@ -0,0 +1,180 @@
|
|||
# Italian translation for PROTECTOR MOD.
|
||||
# Copyright (C) 2020 Hamlet
|
||||
# This file is distributed under the same license as the PROTECTOR MOD package.
|
||||
# Xanthin <xanthin@wiuwiu.de>, 2016.
|
||||
# CodeXP <codexp@gmx.net>, 2018.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROTECTOR MOD\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-07-10 17:33+0200\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.2.1\n"
|
||||
"Last-Translator: Hamlet <hamlatgitlab@riseup.net>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Language: it\n"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Remove Protectors around players (separate names with spaces)"
|
||||
msgstr "Elimina i protettori attorno ai giocatori (separa i nomi con gli spazi)"
|
||||
|
||||
#: admin.lua
|
||||
msgid "<names list>"
|
||||
msgstr "<elenco nomi>"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Replace Protector Owner with name provided"
|
||||
msgstr "Sostituisci il proprietario del protettore col nome fornito"
|
||||
|
||||
#: admin.lua
|
||||
msgid "<owner name> <name to replace with>"
|
||||
msgstr "<nome proprietario> <nome con cui sostituirlo>"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Replacing Protector name '@1' with '@2'"
|
||||
msgstr "Sostituzione del nome del protettore '@1' con '@2'"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Show protected areas of your nearby protectors"
|
||||
msgstr "Mostra le aree protette dei protettori vicino a te"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Protector Names to remove: @1"
|
||||
msgstr "Nomi dei protettori da eliminare: @1"
|
||||
|
||||
#: admin.lua
|
||||
msgid "Name List Reset"
|
||||
msgstr "Azzera l'elenco dei nomi"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Wooden Door"
|
||||
msgstr "Porta di legno protetta"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Steel Door"
|
||||
msgstr "Porta d'acciaio protetta"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Trapdoor"
|
||||
msgstr "Botola protetta"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Steel Trapdoor"
|
||||
msgstr "Botola d'acciaio protetta"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Chest"
|
||||
msgstr "Baule protetto"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Chest"
|
||||
msgstr "Al baule"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Inventory"
|
||||
msgstr "All'inventario"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "Protected Chest (@1)"
|
||||
msgstr "Baule protetto (@1)"
|
||||
|
||||
#: init.lua
|
||||
msgid "-- Protector interface --"
|
||||
msgstr "-- Interfaccia protettore --"
|
||||
|
||||
#: init.lua
|
||||
msgid "PUNCH node to show protected area"
|
||||
msgstr "COLPISCI il nodo per mostrare l'area protetta"
|
||||
|
||||
#: init.lua
|
||||
msgid "USE for area check"
|
||||
msgstr "USA per controllare l'area"
|
||||
|
||||
#: init.lua
|
||||
msgid "Members:"
|
||||
msgstr "Membri:"
|
||||
|
||||
#: init.lua
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
#: init.lua
|
||||
msgid "Protection located at: @1"
|
||||
msgstr "Protezione collocata a: @1"
|
||||
|
||||
#: init.lua
|
||||
msgid "Members: @1."
|
||||
msgstr "Membri: @1."
|
||||
|
||||
#: init.lua
|
||||
msgid "This area is not protected."
|
||||
msgstr "Quest'area non è protetta."
|
||||
|
||||
#: init.lua
|
||||
msgid "You can build here."
|
||||
msgstr "Qui puoi costruire."
|
||||
|
||||
#: init.lua tool.lua
|
||||
msgid "Overlaps into above players protected area"
|
||||
msgstr "Si sovrappone ad un'area sovrastante protetta dai giocatori"
|
||||
|
||||
#: init.lua
|
||||
msgid "Protection Block"
|
||||
msgstr "Blocco di protezione"
|
||||
|
||||
#: admin.lua init.lua tool.lua
|
||||
msgid "Protection (owned by @1)"
|
||||
msgstr "Protezione (di proprietà di @1)"
|
||||
|
||||
#: init.lua
|
||||
msgid "Protection Logo"
|
||||
msgstr "Logo di protezione"
|
||||
|
||||
#: init.lua
|
||||
msgid "[MOD] Protector Redo loaded"
|
||||
msgstr "[MOD] Protector Redo caricato"
|
||||
|
||||
#: init.lua
|
||||
msgid "Spawn @1 has been protected up to a @2 block radius."
|
||||
msgstr "Lo spawn @1 è stato protetto fino a un raggio di @2 blocchi."
|
||||
|
||||
#: init.lua
|
||||
msgid "This area is owned by @1"
|
||||
msgstr "Quest'area è di proprietà di @1"
|
||||
|
||||
#: pvp.lua
|
||||
msgid "[Protector] on_punchplayer called with nil objects"
|
||||
msgstr "[Protector] on_punchplayer chiamato con oggetti nil"
|
||||
|
||||
#: pvp.lua
|
||||
msgid "[Protector] pvp_protect not active, update your version of Minetest"
|
||||
msgstr "[Protector] pvp_protect non attiva, aggiorna la tua versione di Minetest"
|
||||
|
||||
#: pvp.lua
|
||||
msgid "[Protector] pvp_protect is disabled"
|
||||
msgstr "[Protector] pvp_protect è disattivato"
|
||||
|
||||
#: hud.lua
|
||||
msgid "Owner: @1"
|
||||
msgstr "Proprietario: @1"
|
||||
|
||||
#: tool.lua
|
||||
msgid "Protector Placer Tool (stand near protector, face direction and use)"
|
||||
msgstr "Strumento di posizionamento protettore (stai vicino al protettore, guarda la direzione e usa)"
|
||||
|
||||
#: tool.lua
|
||||
msgid "Protector already in place!"
|
||||
msgstr "Protettore già presente!"
|
||||
|
||||
#: tool.lua
|
||||
msgid "No protectors available to place!"
|
||||
msgstr "Nessun protettore disponibile da posizionare!"
|
||||
|
||||
#: tool.lua
|
||||
msgid "Protector placed at @1"
|
||||
msgstr "Protettore posizionato a @1"
|
|
@ -0,0 +1,55 @@
|
|||
# textdomain: protector
|
||||
# author: Xanthin and CodeXP
|
||||
# last update: 2020/Jul/12
|
||||
|
||||
### admin.lua ###
|
||||
Remove Protectors around players (separate names with spaces)=Entferne Störschützer von bestimmten Namen in der Nähe von Spielern (trenne Namen durch Leerzeichen)
|
||||
<names list>=<Namensliste der Spieler>
|
||||
Replace Protector Owner with name provided=Ersetze Besitzer der Störschützer mit neuem Besitzer
|
||||
<owner name> <name to replace with>=<Name des Besitzers> <Name des neuen Besitzers>
|
||||
Replacing Protector name '@1' with '@2'=Ersetze Besitzer der Störschützer von '@1' mit '@2'
|
||||
Show protected areas of your nearby protectors=Zeige geschützte Bereiche der Störschützer in der Nähe
|
||||
Protector Names to remove: @1=Störschutznamen zum Entfernen: @1
|
||||
Name List Reset=Namensliste zurückgesetzt
|
||||
|
||||
### doors_chest.lua ###
|
||||
Protected Wooden Door=Geschützte Holztür
|
||||
Protected Steel Door=Geschützte Stahltür
|
||||
Protected Trapdoor=Geschützte Falltür
|
||||
Protected Steel Trapdoor=Geschützte Stahlfalltür
|
||||
Protected Chest=Geschützte Truhe
|
||||
To Chest=Zur Truhe
|
||||
To Inventory=Zum Inventar
|
||||
Protected Chest (@1)=Geschützte Truhe (@1)
|
||||
|
||||
### init.lua ###
|
||||
-- Protector interface --=-- Störschutz-Interface --
|
||||
PUNCH node to show protected area=SCHLAGE Node, um geschützten Bereich anzuzeigen oder
|
||||
USE for area check=BENUTZE für Bereichsprüfung
|
||||
Members:=Mitglieder:
|
||||
Close=Schließen
|
||||
Protection located at: @1=Störschutz befindet sich bei: @1
|
||||
Members: @1.=Mitglieder: @1.
|
||||
This area is not protected.=Dieser Bereich ist nicht geschützt.
|
||||
You can build here.=Du kannst hier bauen.
|
||||
Overlaps into above players protected area=Überlappung im geschützen Bereich eines Spielers
|
||||
Protection Block=Störschutzblock
|
||||
Protection (owned by @1)=Störschutz (gehört @1)
|
||||
Protection Logo=Störschutzlogo
|
||||
[MOD] Protector Redo loaded=[MOD] Protector Redo geladen
|
||||
Spawn @1 has been protected up to a @2 block radius.=Spawn @1 ist geschützt mit einem Radius von @2 Blöcke.
|
||||
This area is owned by @1=Dieser Bereich gehört @1
|
||||
|
||||
### pvp.lua ###
|
||||
[Protector] on_punchplayer called with nil objects=on_punchplayer wurde durch \"nil objects\" aufgerufen
|
||||
[Protector] pvp_protect not active, update your version of Minetest=pvp_protect ist nicht aktiv, aktualisiere deine Minetestversion
|
||||
[Protector] pvp_protect is disabled=pvp_protect ist ausgeschaltet
|
||||
|
||||
### hud.lua ###
|
||||
Owner: @1=Besitzer: @1
|
||||
|
||||
### tool.lua ###
|
||||
Protector Placer Tool (stand near protector, face direction and use)=Störschutz Platzier-Werkzeug (stehe neben Störschutz, schaue in die gewünschte Richtung und anwenden)
|
||||
Protector already in place!=Störschutz is bereits platziert!
|
||||
No protectors available to place!=Keine Störschützer mehr im Inventar!
|
||||
"Protector placed at @1"=Störschutz befindet sich bei: @1
|
|
@ -0,0 +1,55 @@
|
|||
# textdomain: protector
|
||||
# author: universales
|
||||
# last update: 2020-02-27
|
||||
|
||||
### admin.lua ###
|
||||
Remove Protectors around players (separate names with spaces)=Eliminar protectores alrededor de los jugadores (nombres separados con espacios)
|
||||
<names list>=<Lista de nombres>
|
||||
Replace Protector Owner with name provided=Reemplace el propietario del protector con el nombre proporcionado
|
||||
<owner name> <name to replace with>=<Nombre del propietario> <Nombre del nuevo propietario>
|
||||
Replacing Protector name '@1' with '@2'=Reemplazando el nombre del protector '@1' a '@2'
|
||||
Show protected areas of your nearby protectors=Mostrar áreas protegidas de sus protectores cercanos
|
||||
Protector Names to remove: @1=Nombres de protectores para eliminar: @1
|
||||
Name List Reset=Restablecer lista de nombres
|
||||
|
||||
### doors_chest.lua ###
|
||||
Protected Wooden Door=Puerta de madera protegida
|
||||
Protected Steel Door=Puerta de hierro protegida
|
||||
Protected Trapdoor=Trampilla Protegida
|
||||
Protected Steel Trapdoor=Trampilla de hierro protegida
|
||||
Protected Chest=Cofre protegido
|
||||
To Chest=Al cofre
|
||||
To Inventory=Al inventario
|
||||
Protected Chest (@1)=Cofre protegido (@1)
|
||||
|
||||
### init.lua ###
|
||||
-- Protector interface --=-- Interfaz del protector --
|
||||
PUNCH node to show protected area=nodo de perforación para mostrar el área protegida
|
||||
USE for area check=Usar para chequeo del área
|
||||
Members:=Miembros:
|
||||
Close=Cerrar
|
||||
Protection located at: @1=Protección ubicada en: @1
|
||||
Members: @1.=Miembros: @1.
|
||||
This area is not protected.=Esta área no está protegida.
|
||||
You can build here.=Puedes construir aquí.
|
||||
Overlaps into above players protected area=Se superpone en el área protegida de los jugadores anteriores
|
||||
Protection Block=Bloque de protección
|
||||
Protection (owned by @1)=Protegido (Propiedad de @1)
|
||||
Protection Logo=Logotipo de la protección
|
||||
[MOD] Protector Redo loaded=[MOD] Protector recargado
|
||||
Spawn @1 has been protected up to a @2 block radius.=Spawn @1 ha sido protegido hasta un radio de bloque @2.
|
||||
This area is owned by @1=Esta área es propiedad de @1
|
||||
|
||||
### pvp.lua ###
|
||||
[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer llamado con objetos nulos.
|
||||
[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect no está activo, actualiza tu versión de Minetest
|
||||
[Protector] pvp_protect is disabled=[Protector] pvp_protect está deshabilitado
|
||||
|
||||
### hud.lua ###
|
||||
Owner: @1=Propietario: @1
|
||||
|
||||
### tool.lua ###
|
||||
Protector Placer Tool (stand near protector, face direction and use)=Herramienta de colocación del protector (pararse cerca del protector, dirección de la cara y uso)
|
||||
Protector already in place!=¡El protector ya está en este lugar!
|
||||
No protectors available to place!=¡No hay protectores disponibles para colocar!
|
||||
Protector placed at @1=Protector colocado en @1
|
|
@ -0,0 +1,55 @@
|
|||
# textdomain: protector
|
||||
# author: CodeXP and TenPlus1
|
||||
# last update: 2020/Jul/12
|
||||
|
||||
### admin.lua ###
|
||||
Remove Protectors around players (separate names with spaces)=Retirer les protecteurs près des joueurs avec les noms fournis (noms séparés avec des espaces)
|
||||
<names list>=<liste de noms>
|
||||
Replace Protector Owner with name provided=Remplacer le propriétaire du protecteur par le nom fourni
|
||||
<owner name> <name to replace with>=<nom du propriétaire> <nom à remplacer>
|
||||
Replacing Protector name '@1' with '@2'=
|
||||
Show protected areas of your nearby protectors=Affichez les zones protégées de vos protecteurs à proximité
|
||||
Protector Names to remove: @1=Noms de protecteurs à supprimer: @1
|
||||
Name List Reset=Liste de noms réinitialiser
|
||||
|
||||
### doors_chest.lua ###
|
||||
Protected Wooden Door=Porte en bois protégée
|
||||
Protected Steel Door=Porte en acier protégée
|
||||
Protected Trapdoor=Trappe protégé
|
||||
Protected Steel Trapdoor=Trap en acier protégé
|
||||
Protected Chest=Coffre protégé
|
||||
To Chest=Vers le coffre
|
||||
To Inventory=Vers l'inventaire
|
||||
Protected Chest (@1)=Coffre protégé (@1)
|
||||
|
||||
### init.lua ###
|
||||
-- Protector interface --=-- Interface Protector --
|
||||
PUNCH node to show protected area=TAPÉ le bloc pour afficher la zone protégée
|
||||
USE for area check=UTILISER pour vérifier la zone
|
||||
Members:=Membres:
|
||||
Close=Fermer
|
||||
Protection located at: @1=Protection située à: @1
|
||||
Members: @1.=Membres: @1.
|
||||
This area is not protected.=msgstr "Cette zone n'est pas protégée.
|
||||
You can build here.=Vous pouvez construire ici.
|
||||
Overlaps into above players protected area=Vous chevauché une zone protégé.
|
||||
Protection Block=Bloc de protection
|
||||
Protection (owned by @1)=Protection (détenue par @1)
|
||||
Protection Logo=Logo de protection
|
||||
[MOD] Protector Redo loaded=[MOD] Protector Redo chargé
|
||||
Spawn @1 has been protected up to a @2 block radius.=
|
||||
This area is owned by @1=Cette zone appartient à @1!
|
||||
|
||||
### pvp.lua ###
|
||||
[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer appelé avec des objets nil
|
||||
[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect est désactivé, mettez à jour votre version de Minetest
|
||||
[Protector] pvp_protect is disabled=[Protector] pvp_protect est désactivé
|
||||
|
||||
### hud.lua ###
|
||||
Owner: @1=Propriétaire: @1
|
||||
|
||||
### tool.lua ###
|
||||
Protector Placer Tool (stand near protector, face direction and use)=Outil de placement du protecteur (se tenir près du protecteur, direction du visage et utilisation)
|
||||
Protector already in place!=Protecteur déjà en place!
|
||||
No protectors available to place!=Aucun protecteur disponible à placer!
|
||||
Protector placed at @1=Protection située à: @1
|
|
@ -0,0 +1,55 @@
|
|||
# textdomain: protector
|
||||
# author: Xanthin and CodeXP
|
||||
# last update: 2018/Jul/10
|
||||
|
||||
### admin.lua ###
|
||||
Remove Protectors around players (separate names with spaces)=Elimina i protettori attorno ai giocatori (separa i nomi con gli spazi)
|
||||
<names list>=<elenco nomi>
|
||||
Replace Protector Owner with name provided=Sostituisci il proprietario del protettore col nome fornito
|
||||
<owner name> <name to replace with>=<nome proprietario> <nome con cui sostituirlo>
|
||||
Replacing Protector name '@1' with '@2'=Sostituzione del nome del protettore '@1' con '@2'
|
||||
Show protected areas of your nearby protectors=Mostra le aree protette dei protettori vicino a te
|
||||
Protector Names to remove: @1=Nomi dei protettori da eliminare: @1
|
||||
Name List Reset=Azzera l'elenco dei nomi
|
||||
|
||||
### doors_chest.lua ###
|
||||
Protected Wooden Door=Porta di legno protetta
|
||||
Protected Steel Door=Porta d'acciaio protetta
|
||||
Protected Trapdoor=Botola protetta
|
||||
Protected Steel Trapdoor=Botola d'acciaio protetta
|
||||
Protected Chest=Baule protetto
|
||||
To Chest=Al baule
|
||||
To Inventory=All'inventario
|
||||
Protected Chest (@1)=Baule protetto (@1)
|
||||
|
||||
### init.lua ###
|
||||
-- Protector interface --=-- Interfaccia protettore --
|
||||
PUNCH node to show protected area=COLPISCI il nodo per mostrare l'area protetta
|
||||
USE for area check=USA per controllare l'area
|
||||
Members:=Membri:
|
||||
Close=Chiudi
|
||||
Protection located at: @1=Protezione collocata a: @1
|
||||
Members: @1.=Membri: @1.
|
||||
This area is not protected.=Quest'area non è protetta.
|
||||
You can build here.=Qui puoi costruire.
|
||||
Overlaps into above players protected area=Si sovrappone ad un'area sovrastante protetta dai giocatori
|
||||
Protection Block=Blocco di protezione
|
||||
Protection (owned by @1)=Protezione (di proprietà di @1)
|
||||
Protection Logo=Logo di protezione
|
||||
[MOD] Protector Redo loaded=[MOD] Protector Redo caricato
|
||||
Spawn @1 has been protected up to a @2 block radius.=Lo spawn @1 è stato protetto fino a un raggio di @2 blocchi.
|
||||
This area is owned by @1=Quest'area è di proprietà di @1
|
||||
|
||||
### pvp.lua ###
|
||||
[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer chiamato con oggetti nil
|
||||
[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect non attiva, aggiorna la tua versione di Minetest
|
||||
[Protector] pvp_protect is disabled=[Protector] pvp_protect è disattivato
|
||||
|
||||
### hud.lua ###
|
||||
Owner: @1=Proprietario: @1
|
||||
|
||||
### tool.lua ###
|
||||
Protector Placer Tool (stand near protector, face direction and use)=Strumento di posizionamento protettore (stai vicino al protettore, guarda la direzione e usa)
|
||||
Protector already in place!=Protettore già presente!
|
||||
No protectors available to place!=Nessun protettore disponibile da posizionare!
|
||||
Protector placed at @1=Protettore posizionato a @1
|
|
@ -0,0 +1,55 @@
|
|||
# textdomain: protector
|
||||
# author: CodeXP
|
||||
# last update: 2018/Jul/10
|
||||
|
||||
### admin.lua ###
|
||||
Remove Protectors around players (separate names with spaces)=Удалить защиту рядом с игроками (перечислить имена, разделяя пробелами)
|
||||
<names list>=<список имён>
|
||||
Replace Protector Owner with name provided=Заменить владельца защиты новым владельцем
|
||||
<owner name> <name to replace with>=<имя владельца> <имя нового владельца>
|
||||
Replacing Protector name '@1' with '@2'=Заменяется владелец защиты с '@1' на '@2'
|
||||
Show protected areas of your nearby protectors=Показать ближайшие защищённые территории
|
||||
Protector Names to remove: @1=Имена, подлежащие удалению: @1
|
||||
Name List Reset=Очистить список имён
|
||||
|
||||
### doors_chest.lua ###
|
||||
Protected Wooden Door=Защищённая яблоневая дверь
|
||||
Protected Steel Door=Защищённая стальная дверь
|
||||
Protected Trapdoor=Защищённый яблоневый люк
|
||||
Protected Steel Trapdoor=Защищённый стальной люк
|
||||
Protected Chest=Защищённый сундук
|
||||
To Chest=В сундук
|
||||
To Inventory=В инвентрарь
|
||||
Protected Chest (@1)=Защищённый сундук (@1)
|
||||
|
||||
### init.lua ###
|
||||
-- Protector interface --=-- Настройка защиты --
|
||||
PUNCH node to show protected area=СТУКНУТЬ узел для подсветки защищённой территории
|
||||
USE for area check=ЛКМ для проверки защищённой территории
|
||||
Members:=Участники:
|
||||
Close=Закрыть
|
||||
Protection located at: @1=Защита находится на координатах @1
|
||||
Members: @1.=Участники: @1.
|
||||
This area is not protected.=Территория свободна.
|
||||
You can build here.=Здесь можно ставить блоки.
|
||||
Overlaps into above players protected area=Защитный блок не может быть установлен: пересечение с областями, защищёнными другими игроками
|
||||
Protection Block=Защитный блок
|
||||
Protection (owned by @1)=Защита игрока @1
|
||||
Protection Logo=Защитный знак
|
||||
[MOD] Protector Redo loaded=[МОД] Protector Redo загружен
|
||||
Spawn @1 has been protected up to a @2 block radius.=Спаун @1 защищён в радиусе @2 блока.
|
||||
This area is owned by @1=Эта территория пренадлежит @1
|
||||
|
||||
### pvp.lua ###
|
||||
[Protector] on_punchplayer called with nil objects=[Защита] on_punchplayer вызвана с нулевыми объектами
|
||||
[Protector] pvp_protect not active, update your version of Minetest=[Защита] pvp_protect неактивен, обновите версию Minetest
|
||||
[Protector] pvp_protect is disabled=[Защита] pvp_protect отключён
|
||||
|
||||
### hud.lua ###
|
||||
Owner: @1=Владелец: @1
|
||||
|
||||
### tool.lua ###
|
||||
Protector Placer Tool (stand near protector, face direction and use)=Инструмент установки защиты (встаньте рядом с защитой, повернитесь в нужном направлении и используйте)
|
||||
Protector already in place!=Защита уже установлена!
|
||||
No protectors available to place!=У вас нет защитных блоков в инвентаре!
|
||||
Protector placed at @1=Защита находится на координатах @1
|
|
@ -0,0 +1,55 @@
|
|||
# textdomain: protector
|
||||
# author: CodeXP and TenPlus1
|
||||
# last update: 2020/Jul/12
|
||||
|
||||
### admin.lua ###
|
||||
Remove Protectors around players (separate names with spaces)=Ismi verilen oyuncuların yanındaki korumaları kaldır. (İsimleri boşlukla ayır)
|
||||
<names list>=<isim listesi>
|
||||
Replace Protector Owner with name provided=Koruyucu Sahibini belirtilen adla değiştirin
|
||||
<owner name> <name to replace with>=<sahip adı> <değiştirilecek ad>
|
||||
Replacing Protector name '@1' with '@2'='@ 1' Koruyucu adını '@ 2' ile değiştirin
|
||||
Show protected areas of your nearby protectors=Yakındaki koruyucuların korunan alanlarını göster
|
||||
Protector Names to remove: @1=Silinecek korumaların isimleri: @1
|
||||
Name List Reset=İsim listesini sıfırla
|
||||
|
||||
### doors_chest.lua ###
|
||||
Protected Wooden Door=Korumalı ahşap kapı
|
||||
Protected Steel Door=Korumalı çelik kapı
|
||||
Protected Trapdoor=Korumalı tuzak kapısı
|
||||
Protected Steel Trapdoor=Korumalı çelik tuzak kapısı
|
||||
Protected Chest=Korumalı sandık
|
||||
To Chest=Sandığa
|
||||
To Inventory=Envantere
|
||||
Protected Chest (@1)=Korumalı sandık (@1)
|
||||
|
||||
### init.lua ###
|
||||
-- Protector interface --=-- Koruyucu arayüz --
|
||||
PUNCH node to show protected area=Korunan alanı göstermek için yumruk
|
||||
USE for area check=Bölge kontrolü için kullan
|
||||
Members:=Üyeler
|
||||
Close=Kapat
|
||||
Protection located at: @1=Korumanın bulunduğu yer @1
|
||||
Members: @1.=Üyeler @1.
|
||||
This area is not protected.=Bu alan korumalı değildir.
|
||||
You can build here.=Buraya inşaa edebilirsiniz.
|
||||
Overlaps into above players protected area=Yukarıdaki oyuncuların koruma alanı ile çakışıyor
|
||||
Protection Block=Koruma kutusu
|
||||
Protection (owned by @1)=Koruma (@1 sahibidir)
|
||||
Protection Logo=Koruma arması
|
||||
[MOD] Protector Redo loaded=[MOD] Protector Redo yüklendi
|
||||
Spawn @1 has been protected up to a @2 block radius.=Spawn @1, @2 blok yarıçapa kadar korunur.
|
||||
This area is owned by @1=Burasının sahibi @1!
|
||||
|
||||
### pvp.lua ###
|
||||
[Protector] on_punchplayer called with nil objects=[Protector] on_punchplayer boş objelerle çağrıldı
|
||||
[Protector] pvp_protect not active, update your version of Minetest=[Protector] pvp_protect aktif değil, Minetest sürümünüzü güncelleyin.
|
||||
[Protector] pvp_protect is disabled=[Protector] pvp_protect kapatıldı.
|
||||
|
||||
### hud.lua ###
|
||||
Owner: @1=Sahip: @1
|
||||
|
||||
### tool.lua ###
|
||||
Protector Placer Tool (stand near protector, face direction and use)=Koruyucu Yerleştirme Aleti (koruyucunun yanında durun, yüz yönü ve kullanım)
|
||||
Protector already in place!=Koruyucu zaten yerinde!
|
||||
No protectors available to place!=Yerleştirilecek koruyucu yok!
|
||||
Protector placed at @1=Korumanın bulunduğu yer @1
|
16
locale/ru.po
16
locale/ru.po
|
@ -19,10 +19,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: admin.lua
|
||||
#, fuzzy
|
||||
msgid "Remove Protectors around players (separate names with spaces)"
|
||||
msgstr ""
|
||||
"Удалить защиту рядом с игроками (перечислить имена, разделяя пробелами)"
|
||||
msgstr "Удалить защиту рядом с игроками (перечислить имена, разделяя пробелами)"
|
||||
|
||||
#: admin.lua
|
||||
msgid "<names list>"
|
||||
|
@ -72,18 +70,6 @@ msgstr "Защищенный стальной люк"
|
|||
msgid "Protected Chest"
|
||||
msgstr "Защищенный сундук"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff to protected chest at @2"
|
||||
msgstr "@1 перемещает вещи в защищенный сундук на координатах @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 takes stuff from protected chest at @2"
|
||||
msgstr "@1 берет вещи из защищенного сундука на координатах @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff inside protected chest at @2"
|
||||
msgstr "@1 перемещает вещи внутри защищенного сундука на координатах @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Chest"
|
||||
msgstr "В сундук"
|
||||
|
|
|
@ -70,18 +70,6 @@ msgstr ""
|
|||
msgid "Protected Chest"
|
||||
msgstr ""
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff to protected chest at @2"
|
||||
msgstr ""
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 takes stuff from protected chest at @2"
|
||||
msgstr ""
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff inside protected chest at @2"
|
||||
msgstr ""
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Chest"
|
||||
msgstr ""
|
||||
|
|
17
locale/tr.po
17
locale/tr.po
|
@ -19,10 +19,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: admin.lua
|
||||
#, fuzzy
|
||||
msgid "Remove Protectors around players (separate names with spaces)"
|
||||
msgstr ""
|
||||
"Ismi verilen oyuncuların yanındaki korumaları kaldır. (İsimleri boşlukla "
|
||||
msgstr "Ismi verilen oyuncuların yanındaki korumaları kaldır. (İsimleri boşlukla "
|
||||
"ayır)"
|
||||
|
||||
#: admin.lua
|
||||
|
@ -73,19 +71,6 @@ msgstr "Korumalı çelik tuzak kapısı"
|
|||
msgid "Protected Chest"
|
||||
msgstr "Korumalı sandık"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 moves stuff to protected chest at @2"
|
||||
msgstr "@1 korumalı sandığa birşeyler koydu @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "@1 takes stuff from protected chest at @2"
|
||||
msgstr "@1 korumalı sandıktan birşeyler aldı @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
#, fuzzy
|
||||
msgid "@1 moves stuff inside protected chest at @2"
|
||||
msgstr "@1 korumalı sandığa içinde bir şeyler taşındı @2"
|
||||
|
||||
#: doors_chest.lua
|
||||
msgid "To Chest"
|
||||
msgstr "Sandığa"
|
||||
|
|
4
mod.conf
4
mod.conf
|
@ -1 +1,3 @@
|
|||
name = protector
|
||||
name = protector
|
||||
description = Lets players craft special blocks to protect their builds or disable PVP in areas.
|
||||
optional_depends = default, intllib, lucky_block, mesecons_mvps, playerfactions
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
# Size of protected area around protection node limiting player interaction
|
||||
protector_radius (Protector Radius [max 22]) int 5
|
||||
|
||||
# Flips player around when accessing protected area to stop lag griefing
|
||||
protector_flip (Protector Flip) bool false
|
||||
|
||||
# Hurts player by amount entered when accessing protected area, 0 to disable
|
||||
protector_hurt (Protector Hurt) int 0
|
||||
|
||||
# Sets a protected area around spawn by node radius given
|
||||
protector_spawn (Protector Spawn) int 0
|
||||
|
||||
# Enables PVP inside of protected areas
|
||||
protector_pvp (Protector PVP) bool false
|
||||
|
||||
# When true will allow PVP inside protected spawn area
|
||||
protector_pvp_spawn (Protector PVP Spawn) int 0
|
||||
|
||||
# When true will allow PVP inside all protected areas at night time only
|
||||
protector_night_pvp (Protector Night PVP) bool false
|
||||
|
||||
# Interval in seconds that protection field is shown
|
||||
protector_show_interval (Protector Show Interval) int 5
|
||||
|
||||
# Interval in seconds that HUD ownership text is updated, 0 to disable
|
||||
protector_hud_interval (Protector HUD Interval) int 5
|
||||
|
||||
# Enables craft recipe for protection block
|
||||
protector_recipe (Enable Protector recipe) bool true
|
||||
|
||||
# Enables protection messages in player chat
|
||||
protector_msg (Enable Protector Messages) bool true
|
Loading…
Reference in New Issue