Paste #27940: First If Statement

Date: 2016/01/06 20:39:08 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
13
14
15
16
17
18


on player clicks warp_menu_slot2 in warp_menu:
        - if <player.has_permission[essentials.warps.donor]> {
          - execute as_player "ewarp donor"
          - inventory close d:in@warp_menu
          - title "title:<&c>5" "subtitle:<&7>Teleport commencing..." fade_out:0s fade_in:0s
          - wait 1s
          - title "title:<&c>4" "subtitle:<&7>Teleport commencing..." fade_out:0s fade_in:0s
          - wait 1s
          - title "title:<&c>3" "subtitle:<&7>Teleport commencing..." fade_out:0s fade_in:0s
          - wait 1s
          - title "title:<&c>2" "subtitle:<&7>Teleport commencing..." fade_out:0s fade_in:0s
          - wait 1s
          - title "title:<&c>1" "subtitle:<&7>Teleport commencing..." fade_out:0s fade_in:0s
        }
        else {
          - inventory close d:in@warp_menu
          - narrate "<&c>Error: You do not have permission for this warp. Obtain this permission by donating."
        }