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 /pvp.lua | |
parent | b0c2e6433f7e6b022b753eeb6e00452db09a797c (diff) |
Added intllib support (thanks Xanthin)
Diffstat (limited to 'pvp.lua')
-rw-r--r-- | pvp.lua | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |