loop list

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 15, 2017
4
0
1
21
command /contactrequest:
trigger:
open chest with 5 rows named "Your contacts requests" to player
set {_n} to 0
loop {%uuid of player%.contactrequesttt::*}:
format slot (loop-index parsed as integer -1) of player with skull of ("loop-player" parsed as offline player) named "%loop-value%" with lore "t" to close then run [execute player command "/broadcast %loop-value%"]

if there is more then 2 in {%uuid of player%.contactrequesttt::*} it takes the last player that was add to {%uuid of player%.contactrequesttt::*} allways
 
command /contactrequest:
trigger:
open chest with 5 rows named "Your contacts requests" to player
set {_n} to 0
loop {%uuid of player%.contactrequesttt::*}:
format slot (loop-index parsed as integer -1) of player with skull of ("loop-player" parsed as offline player) named "%loop-value%" with lore "t" to close then run [execute player command "/broadcast %loop-value%"]

if there is more then 2 in {%uuid of player%.contactrequesttt::*} it takes the last player that was add to {%uuid of player%.contactrequesttt::*} allways
Can you use the code block to format your code to make it easier to read
 
Status
Not open for further replies.