command online []: trigger: open chest inventory with 6 rows named "&6Lista graczy online" to player wait 2 ticks set {_x} to 0 loop all players where [input has permission "ranga.wlasciciel"]: {_x} < 54 set slot {_x} of player's current inventory to loop-player's skull named "&7" with lore "", " &7Nick: &e%loop-player%", " &7Ranga: &eWlasciciel", "" add 1 to {_x} loop all players where [input has permission "ranga.admin"]: loop-player doesn't have permission "ranga.wlasciciel" {_x} < 54 set slot {_x} of player's current inventory to loop-player's skull named "&7" with lore "", " &7Nick: &e%loop-player%", " &7Ranga: &eAdmin", "" add 1 to {_x} loop all players where [input has permission "ranga.vip"]: loop-player doesn't have permission "ranga.wlasciciel" or "ranga.admin" {_x} < 54 set slot {_x} of player's current inventory to loop-player's skull named "&7" with lore "", " &7Nick: &e%loop-player%", " &7Ranga: &eVIP", "" add 1 to {_x} loop all players where [input doesn't have permission "ranga.vip" or "ranga.wlasciciel" or "ranga.admin"]: {_x} < 54 set slot {_x} of player's current inventory to loop-player's skull named "&7" with lore "", " &7Nick: &e%loop-player%", " &7Ranga: &eGracz", "" add 1 to {_x} on inventory click: inventory name of event-inventory is "&6Lista graczy online" cancel event