summaryrefslogtreecommitdiff
path: root/pvp.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 /pvp.lua
parentb0c2e6433f7e6b022b753eeb6e00452db09a797c (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'pvp.lua')
-rw-r--r--pvp.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/pvp.lua b/pvp.lua
index 0122576..5a6cc8b 100644
--- a/pvp.lua
+++ b/pvp.lua
@@ -1,4 +1,6 @@
+local S = protector.intllib
+
-- get static spawn position
local statspawn = (minetest.setting_get_pos("static_spawnpoint") or {x = 0, y = 2, z = 0})
@@ -16,7 +18,7 @@ if minetest.setting_getbool("enable_pvp") and protector.pvp then
if not player
or not hitter then
- print("[Protector] on_punchplayer called with nil objects")
+ print(S("[Protector] on_punchplayer called with nil objects"))
end
if not hitter:is_player() then
@@ -43,9 +45,9 @@ if minetest.setting_getbool("enable_pvp") and protector.pvp then
end)
else
- print("[Protector] pvp_protect not active, update your version of Minetest")
+ print(S("[Protector] pvp_protect not active, update your version of Minetest"))
end
else
- print("[Protector] pvp_protect is disabled")
+ print(S("[Protector] pvp_protect is disabled"))
end