Paste #35059: Untitled Paste

Date: 2016/07/27 18:12:26 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


test:
    type: world
    events:
        on player joins:
        - run check
        on player changes world:
        - run check
check:
    type: task
    script:
        - if <player.location.world.name> != "Hub" {
            - bossbar remove boss_mine
            - queue clear
        }
        else {
            - while <player.location.world.name.is[==].to[Hub]> {
                - bossbar boss_mine players:<player> "title:Bienvenido <&c><player.name>" color:PINK
                - wait 5s
                - bossbar update boss_mine players:<player> "title:PUTO TROLO <&c><player.name>" color:PINK
                - wait 5s
                - bossbar remove boss_mine
            }
        }