options: errormsg: &a&l> &7Cos poszlo nie tak, sprawdz swoje arg! errornot: &a&l> &7Uzyj &6/ab help &7aby uzyskac pomoc! command /ab [] [] [] []: permission: admin.sk permission message: &c&lERROR, &7Nie masz do tego permisji. aliases: ab, action, abar, actionbar trigger: if arg 1 isn't "help" or "send": send "{@errornot}" if arg 1 isn't set: send "{@errornot}" to player else if arg 1 is "help": send "&8----- &7&l[Skript] &6Actionbar 1.14 &8 -----" to player send "&a&l> &7/ab send &f&l: &aWyslij actionbara!" to player send "&a&l> Mozesz uzywac @a, @p and @r!" to player send "&8----- &8-----" to player else if arg 1 is "send": if arg 2 is not "@a" or "@p" or "@r" or "time": if arg 3 is set: if arg 4 is set: set {_p1} to "%arg 2%" parsed as player set {time.%player%} to arg-3 wait 1 tick loop {time.%player%} times: set action bar of {_p1} to coloured "%arg-4%" wait 1 second else: send player title "&f&lActionbar" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Zapomniales dodad wiadomosc." to player else: send player title "&f&lActionbar &7" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Czas i wiadomosc nie zostala dodana." to player else if arg 2 isn't set: send "{@errormsg}" to player else if arg 2 is "@a": if arg 3 is set: if arg 4 is set: loop all players: set {time.%player%} to arg-3 loop {time.%player%} times: set {_all} to "%loop-player%" parsed as player set action bar of {_all} to coloured "%arg-4%" wait 1 second else: send player title "&f&lActionbar" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Zapomniales dodad wiadomosc." to player else: send player title "&f&lActionbar" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Czas i wiadomosc nie zostala dodana." to player else if arg 2 is "@p": if arg 3 is set: if arg 4 is set: set {time.%player%} to arg-3 loop {time.%player%} times: set {_p} to "%player%" parsed as player set action bar of {_p} to coloured "%arg-4%" wait 1 second else: send player title "&f&lActionbar" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Wiadomosc nie zostala dodana do ActionBar" else: send player title "&f&lActionbar" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Czas i wiadomosc nie zostala dodana." to player else if arg 2 is "@r": if arg 3 is set: if arg 4 is set: set {time.%player%} to arg-3 loop {time.%player%} times: loop all players: set {_r} to a random element of loop-player set action bar of {_r} to coloured "%arg-4%" wait 1 second else: send player title "&f&lActionbar" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Wiadomosc nie zostala dodana do ActionBar" else: send player title "&f&lActionbar" with subtitle "&7Sprawdz /ab help." for 3 seconds send "&a&l> &7Czas i wiadomosc nie zostala dodana." to player