SkRayFall Bossbar Error

Discussion in 'Skript' started by Sileence, Jul 13, 2021.

  1. It works without a function but when I do it this way, it wont work
    (bossbar is displayed but it wont disappear again)

    Im using Paper 1.17.1

    Code (Text):
    function test(receiver: player, message: string):
        set {_id} to random integer between 10000000 and 99999999
        create bossbar titled {_message} and id {_id} for {_receiver} with progress 100 with colors white
        loop 100 times:
            set bossbar {_id} value to (100 - loop-number)
            wait 0.07 seconds
        remove bossbar {_id}

    command /test:
            test(player, "&aTest message")
    #1 Sileence, Jul 13, 2021
    Last edited: Jul 13, 2021