Paste #10136: Untitled Paste

Date: 2014/09/27 19:07:05 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
19
20
21


toggleon Command:
  type: world
  events:
    on toggleon command:
    - determine passively fulfilled
    - if !<player.is_op> {
      - narrate "<&f>You must be op to use this command."
      - queue clear
      }
    - if <server.flag[state]> flag global state:!
      else flag global state

zane49erpluggin:
    type: world
    events:
      on player places block:
        - if <server.flag[state]> {
          - flag global material:<context.material.name>
          - flag global location:<context.location.simple>
          - narrate "you placed <global.flag[material]> at <global.flag[location]>"
          }