Date: 2015/07/13 08:07:13 UTC-07:00
Type: Denizen Script
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!"
}