Paste #40825: Edit of P#40824 - only ladder building

Date: 2017/03/17 16:41:04 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


only ladder building:
  type: world
  debug: true

  if_op_check:
  - determine passively fulfilled
  - if !<player.is_op> {
    - narrate 'You are an op, so you can build all you want here!'
    - queue clear
    }


  events:
    on block being built:
    - inject locally if_op_check
    - if !<player.has_permission[can_put_ladder]> {
    - narrate  тебя нет права ставить здесь лестницу.'
    - queue clear
    } else {
    - foreach <player.griefprevention.list_claims.as_list>{
    - if <%value%> == location.griefprevention.claim {
    - narrate 'you can build it!'
    - determine 'BUILDABLE'
    }
    }
    }