Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function factionsmod.can_build(pos, player)
- if pos.y < factionsmod.lower_claimable_height or
- pos.y > factionsmod.higher_claimable_height then
- return true
- else
- local fac = factionsmod.get_chunk_owner(pos)
- if not fac then
- return true
- else
- return fac:has_permission(player, "build")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement