diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-08-04 20:41:34 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-08-04 20:41:34 +0100 |
commit | 95b378da99a9b653397fcd4504fe3122c9e0f044 (patch) | |
tree | 86e030475a0f94bca402497fec413f46101adbe4 | |
parent | b7c8a9465160c738bd16dddcd52e1b190829a338 (diff) |
Added REDO string
-rw-r--r-- | init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,7 @@ minetest.register_privilege("delprotect","Ignore player protection") protector = {} +protector.mod = "redo" protector.radius = (tonumber(minetest.setting_get("protector_radius")) or 5) protector.get_member_list = function(meta) @@ -159,6 +160,9 @@ protector.old_is_protected = minetest.is_protected function minetest.is_protected(pos, digger) if not protector.can_dig(protector.radius, pos, digger, false, 1) then +-- hurt here +--player = minetest.get_player_by_name(digger) +--player:set_hp(player:get_hp()-2) return true end return protector.old_is_protected(pos, digger) |