Paste #11286: Diff note for paste #11285

Date: 2014/11/16 15:37:47 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 # Two ways:
 # A: The cheaty way
 myscript:
   type: world
   events:
      on suicide command:
      - narrate "<yellow>Say goodnight, <player.name>!!!"
      - hurt <player> 500
      - determine fulfilled
 # B: The newer cleaner proper way
 suicide_command:
   type: command
   name: suicide
+  permission: denizen.killself
   description: ... / usage / etc info that you didn't include
   script:
-  - if !<player.has_permission[denizen.killself]> {
-     - narrate "YOu no can has dis command"
-     - queue clear
-     }
   - narrate "<yellow>Say goodnight, <player.name>!!!"
   - hurt <player> 500