SHARE
TWEET

Untitled

a guest Aug 2nd, 2015 202 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         local function check_player_priv(pos, player)
  2.                 if not def.only_placer_can_open then
  3.                         return true
  4.                 end
  5.                 local meta = minetest.get_meta(pos)
  6.                 local pn = player:get_player_name()
  7.                 if meta:get_string("doors_owner") == pn or
  8.                                 minetest.is_protected(pos,name) then
  9.                         return true
  10.                 else return false end
  11.         end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top