command /boosbar [] []: aliases: bb permission: boosbar.* permission message: &c&lX &8>> &cNie posiadasz uprawnień! trigger: # # # # # # # # # < 8 if arg 1 is not set: # # # # # # # # # < 17 execute player command "bb help" # # 2 # 3 # 4 # # < 26 if arg 1 is "help": # # # 5 # 6 # # # < 35 set {_bb} to chest inventory witch 6 rows named "&8▁ ▂ ▄ ▅ ▆ ▇ █ &b&lBossBars &8█ ▇ ▆ ▅ ▄ ▂ ▁" # # # # # # # # # < 44 set slot 0 and 8 and 45 and 53 of {_bb} to blue stained glass pane named "&9" # # # # # # # # # < 53 set slot 1 and 7 and 9 and 17 and 36 and 44 and 46 and 52 of {_bb} to light blue stained glass pane named "&b" set slot 2 and 6 and 18 and 26 and 27 and 35 and 47 and 51 of {_bb} to white stained glass pane named "&f" set slot 20 of {_bb} to book named "&b&lTworzenie" with lore "&8&l| &7Komenda &b/boosbar create %nl%&8&l| &7tworzy nowy bossbar" set slot 22 of {_bb} to book named "&b&lUsuwanie" with lore "&8&l| &7Komenda &b/boosbar delete %nl%&8&l| &7usuwa podany boosbar" set slot 24 of {_bb} to book named "&b&lEdytowanie" with lore "&8&l| &7Komenda &b/bossbar edit %nl%&8&l| &7edytuje podany bossbar" set slot 30 of {_bb} to book named "&b&lWyświetlanie" with lore "&8&l| &7Komenda &b/bossbar visibility %nl%&8&l| &7pokazuje dany bossbar" set slot 32 of {_bb} to book named "&b&lInformacje" with lore "&8&l| &7Kolory: &bblue&7, &agreen&7, &dpink&7, &5purple&7, &cred&7, &fwhite&7, &eyellow%nl%&8&l| &7Style: &b6&7, &b10&7, &b12&7, &b20&7, &bpełny" open {_bb} to player if arg 1 is "create": if arg 2 is set: if arg 3 is not set: if arg 4 is not set: if arg 5 is not set: if player has permission "boosbar.create": set {_%arg 2%} to bossbar named "%arg 2%" add "%arg 2%" to {_bossbars} send "&8[&b&lBB&8] &7>> &aPomyślnie! &7Stworzono nowy bossbar z nazwą: &f%arg 2%" to player stop else: send "&c&lX &8>> &cNie posiadasz uprawnień!" to player else: set {_%arg 2%} to bossbar named "%arg 2%" with title "%coloured arg 3%" with color bar %arg 4% with style %arg 5% add "%arg 2%" to {_bossbars} send "&8[&b&lBB&8] &7>> &aPomyślnie! &7Stworzono nowy bossbar z nazwą: &f%arg 2%&7, tytułem: &f%arg 3%&7, kolorem: &f%arg 4%&7 i stylem: &f%arg 5%" to player stop else: set {_%arg 2%} to bossbar named "%arg 2%" with title "%coloured arg 3%" with color bar %arg 4% add "%arg 2%" to {_bossbars} send "&8[&b&lBB&8] &7>> &aPomyślnie! &7Stworzono nowy bossbar z nazwą: &f%arg 2%&7, tytułem: &f%arg 3%&7, kolorem: &f%arg 4%" to player stop else: set {_%arg 2%} to bossbar named "%arg 2%" with title "%coloured arg 3%" add "%arg 2%" to {_bossbars} send "&8[&b&lBB&8] &7>> &aPomyślnie! &7Stworzono nowy bossbar z nazwą: &f%arg 2%&7, tytułem: &f%arg 3%" to player stop else: set {_%arg 2%} to bossbar named "%arg 2%" add "%arg 2%" to {_bossbars} send "&8[&b&lBB&8] &7>> &aPomyślnie! &7Stworzono nowy bossbar z nazwą: &f%arg 2%" to player stop else: send "&8[&b&lBB&8] &7>> &c&lBłąd! &7Musisz podać nazwę bossbara! &b/bb help" to player if arg 1 is "delete": if arg 2 is set: if {_bossbars} contains "%arg 2%": if player has permission "bossbar.delete": delete bossbar named "%arg 2%" remove "%arg 2%" from {_bossbars} send "&8[&b&lBB&8] &7>> &aPomyślnie! &7Usunięto bossbar %arg 2%" to player else: send "&c&lX &8>> &cNie posiadasz uprawnień!" to player else: send "&8[&b&lBB&8] &7>> &c&lBłąd! &7Taki bossbar nie istnieje" to player else: send "&8[&b&lBB&8] &7>> &c&lBłąd! &7Musisz podać nazwę boosbara" to player if arg 1 is "edit": if arg 2 is set: if {_boosbars} contains "%arg 2%":