Paste #17897: Edit of P#17895 - Untitled Paste

Date: 2015/07/13 08:07:13 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


Commandexplosions:
  type: world
  events:
    on hold command:
    - determine fulfilled passively
    - if <context.args.get[1]||none> != explosions {
      - narrate "<&c>Incorrect usage!"
      }
    - if <player.faction||none> != none {
      - if <player.faction.leader||none> == <player> {
        - flag <player> allow_explosions:<player.flag[allow_explosions].not||true>
        - narrate "<&a>Explosions in your faction are now set to <&e><player.flag[allow_explosions]||true><&a>!"
        } else {
        - narrate "<&c>You're not the leader of this faction!"
        }
      } else {
      - narrate "<&c>You're not in a faction!"
      }