Paste #49854: Untitled Paste

Date: 2018/09/15 08:02:11 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


joining_server:
    type: world
    events:
        on player joins:
        - if <player.has_permission[themis.start]> {
            - flag player startposition:<player.location>
            - teleport <player> l@643.5,125,351.5,dungeon
            - inventory open d:in@menu_start
          } else {
            - flag player startposition:<player.location>
            - teleport <player> l@643.5,125,351.5,dungeon
            - inventory open d:in@newbie_menu_start
          }

creating_region:
    type: world
    events:
        on server start:
        - note cu@646,130,348,dungeon|640,125,354,dungeon as:spawn
#
#   The next section is all the newbie start menu.
#
newbie_menu_start_event:
    type: world
    events:
        on player enters spawn:
        - run newbie_menu_start
        on player clicks in newbie_menu_start:
        - determine cancelled
        on player drags in newbie_menu_start:
        - determine cancelled
        on player clicks newbie_menu_start_slot1 in newbie_menu_start:
        - teleport <player> l@99,31,-274,dungeon

newbie_menu_start:
    type: inventory
    title: "        Themis Menu"
    size: 9
    slots:
    - "[] [] [] [] [i@newbie_menu_start_slot1] [] [] [] []"

newbie_menu_start_slot1:
    type: item
    material: i@barrier
    display name: "&r&mI        I&r &6&lStart Game &r&mI        I"
    lore:
    - "&7&o     Start your adventure"
    - "&7&o      here at Themiscraft!"
    - "&r"
    - "&r&mI                                     I"
#
#   The next section is for the "normal" start menu.
#
menu_start_event:
    type: world
    events:
        on player enters spawn:
        - run menu_start
        on player clicks in menu_start:
        - determine cancelled
        on player drags in menu_start:
        - determine cancelled
        on player clicks menu_start_slot1 in menu_start:
        - teleport <player> <player.flag[startposition]>

menu_start:
    type: inventory
    title: "        Themis Menu"
    size: 9
    slots:
    - "[] [] [] [] [i@menu_start_slot1] [] [] [] []"

menu_start_slot1:
    type: item
    material: i@barrier
    display name: "&r&mI        I&r &6&lStart Game &r&mI        I"
    lore:
    - "&7&o    Continue your adventure."
    - "&7&o      Your friends miss you."
    - "&r"
    - "&r&mI   I"