Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function check_player_priv(pos, player)
- if not def.only_placer_can_open then
- return true
- end
- local meta = minetest.get_meta(pos)
- local pn = player:get_player_name()
- if meta:get_string("doors_owner") == pn or
- not minetest.is_protected(pos,name) then
- return true
- else return false end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement