Paste #7845: Untitled Paste

Date: 2014/08/04 06:08:15 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


'fire':
  type: world
  events:  


    on Fire command:
    - if !<player.has_effect[NIGHT_VISION]> { 
      - if !<player.flag[fire]> {
        - if <player.has_permission[denizen.fire]> {
          - execute as_server 'give <player.name> 1 1'
          - flag fire duration:800s
          - determine fulfilled                                                       
          - narrate "<&e>                                   <&l><&lb><&6>INFO<&e><&l><&rb> <&nl><&e>                       U get<&co> FIRE<&e>!"
          - determine fulfilled
          } else {
          - narrate "<&e>                                   <&l><&lb><&6>INFO<&e><&l><&rb> <&nl><&e>                  <&c>Sorry u cant get fire u dont have permissions!"
          - determine fulfilled
          }
        } else { 
        - narrate "<&e>                                   <&l><&lb><&6>INFO<&e><&l><&rb> <&nl><&e>          u have wait <&c><&l><player.flag[fire].expiration.formatted> <&e>for call next fire!" 
        - determine fulfilled 
        } 
      } else { 
      - narrate "<&c><&l>Sorry u cant use this command when u have nightvision effect!" 
      }