Paste #650: For Shhifu

Date: 2013/12/21 20:49:14 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


block_npc_command_spam:
    type: world
    events:
        on npc command:
        # Change tphere to whatever command.
        - if <context.args.get[1]> != "tphere" && <context.args.get[1]> != "spawn" queue clear
        - if !<player.flag[block_npc_command_spam]> {
          - flag player block_npc_command_spam duration:1h
          - queue clear
          }
        - narrate "<&c>You must wait one hour before doing that again."
        - determine cancelled