#AxList - Skrypt na liste graczy w gui (Full Config) options: Sciezka: AxList/config.yml command /list []: trigger: set {_s} to 0 set {_permi::*} to yaml list "Permisje" from file "{@Sciezka}" set {_list.Block} to yaml value "Lista.Block" from file "{@Sciezka}" set {_list.Name} to yaml value "Lista.Name" from file "{@Sciezka}" set {_Gui.Name} to yaml value "Nazwa Gui" from file "{@Sciezka}" loop {_permi::*}: set {_Block::%loop-value%} to yaml value "Upr.Config.%loop-value%.Block" from file "{@Sciezka}" set {_Texxt::%loop-value%} to yaml value "Upr.Config.%loop-value%.Text" from file "{@Sciezka}" open chest with 6 rows named "%colored {_Gui.Name}%" to player replace all "{LISTA}" with "1" in {_list.Name} set player's current inventory's slot 53 to ("%{_list.Block}%" parsed as item) named "%colored {_list.Name}%" loop all players: if {_s} <= 52: if loop-player is op: set {_b} to yaml value "Upr.Config.Op.Block" from file "{@Sciezka}" set {_n} to yaml value "Upr.Config.Op.Text" from file "{@Sciezka}" replace all "{NICK}" with "%name of loop-player%" in {_n} replace all "{NUMBER}" with "%{_s}+1%" in {_n} set player's current inventory's slot {_s} to ("%{_b}%" parsed as item) named "%colored {_n}%" add 1 to {_s} else: loop {_permi::*}: if loop-player has permission "AxList.%loop-value-2%": replace all "{NICK}" with "%name of loop-player%" in {_Texxt::%loop-value-2%} replace all "{NUMBER}" with "%{_s}+1%" in {_Texxt::%loop-value-2%} set player's current inventory's slot {_s} to ("%{_Block::%loop-value-2%}%" parsed as item) named "%colored {_Texxt::%loop-value-2%}%" add 1 to {_s} else: stop loop on inventory click: set {_x} to yaml value "Nazwa Gui" from file "{@Sciezka}" if inventory name of current inventory of player contains "%colored {_x}%": cancel event if clicked slot is 53: set {_n} to uncolored name of player's current inventory's slot slot set {_t} to yaml value "Lista.Name" from file "{@Sciezka}" replace all "{LISTA}" with "" in {_t} replace all "%(uncolored (colored {_t}))%" with "" in {_n} if amount of all players > 53*({_n} parsed as number): set {_o} to yaml value "Lista.Name" from file "{@Sciezka}" set {_b} to yaml value "Lista.Block" from file "{@Sciezka}" set {_i} to 1 set {_s} to 1 set {_permi::*} to yaml list "Permisje" from file "{@Sciezka}" loop {_permi::*}: set {_Block::%loop-value%} to yaml value "Upr.Config.%loop-value%.Block" from file "{@Sciezka}" set {_Texxt::%loop-value%} to yaml value "Upr.Config.%loop-value%.Text" from file "{@Sciezka}" replace all "{LISTA}" with "%({_n} parsed as number)+1%" in {_o} close player's inventory open chest with 6 rows named "%colored {_x}%" to player set player's current inventory's slot 53 to ("%{_b}%" parsed as item) named "%colored {_o}%" loop all players: if {_i} > 53*({_n} parsed as number): if {_s} <= 52: if loop-player is op: set {_b} to yaml value "Upr.Config.Op.Block" from file "{@Sciezka}" set {_n} to yaml value "Upr.Config.Op.Text" from file "{@Sciezka}" replace all "{NICK}" with "%name of loop-player%" in {_n} replace all "{NUMBER}" with "%{_s}+1%" in {_n} set player's current inventory's slot {_s} to ("%{_b}%" parsed as item) named "%colored {_n}%" add 1 to {_s} else: loop {_permi::*}: if loop-player has permission "AxList.%loop-value-2%": replace all "{NICK}" with "%name of loop-player%" in {_Texxt::%loop-value-2%} replace all "{NUMBER}" with "%{_s}+1%" in {_Texxt::%loop-value-2%} set player's current inventory's slot {_s} to ("%{_Block::%loop-value-2%}%" parsed as item) named "%colored {_Texxt::%loop-value-2%}%" add 1 to {_s} else: send "&6Nie ma wiecej graczy do wyswietlenia"