Advertisement
Guest User

Untitled

a guest
Aug 6th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. function factionsmod.can_build(pos, player)
  2.     if pos.y < factionsmod.lower_claimable_height or
  3.        pos.y > factionsmod.higher_claimable_height then
  4.         return true
  5.     else
  6.         local fac = factionsmod.get_chunk_owner(pos)
  7.         if not fac then
  8.             return true
  9.         else
  10.             return fac:has_permission(player, "build")
  11.         end
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement