loop all player if....

  • 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!

Oct 15, 2023
14
1
3
23
New york
Code:
every 5 seconds:
   loop all players:
     if loop-player contains {afk::*}:
       give loop-player prismarine shard named "&x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld &8[&eᴄᴜʀʀᴇɴᴄʏ&8]" with lore "&fRating: &e★★"
       send "You received &x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld" to loop-player

no errors but not working
idk why its not working please help
 
Code:
every 5 seconds:
   loop all players:
     if loop-player contains {afk::*}:
       give loop-player prismarine shard named "&x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld &8[&eᴄᴜʀʀᴇɴᴄʏ&8]" with lore "&fRating: &e★★"
       send "You received &x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld" to loop-player

no errors but not working
idk why its not working please help
i fixed it nvm
Code:
every 5 seconds:
  loop all players:
    if {afk::*} contains loop-player:
      give loop-player prismarine shard named "&x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld &8[&eᴄᴜʀʀᴇɴᴄʏ&8]" with lore "&fRating: &e★★"
      send "You received &x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld" to loop-player
 
  • Like
Reactions: Luke_Sky_Walker
i fixed it nvm
Code:
every 5 seconds:
  loop all players:
    if {afk::*} contains loop-player:
      give loop-player prismarine shard named "&x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld &8[&eᴄᴜʀʀᴇɴᴄʏ&8]" with lore "&fRating: &e★★"
      send "You received &x&0&0&9&f&9&5&lA&x&0&0&9&f&9&5&lF&x&0&0&9&f&9&5&lK &x&0&0&9&f&9&5&lS&x&0&0&9&f&9&5&lh&x&0&0&9&f&9&5&la&x&0&0&9&f&9&5&lr&x&0&0&9&f&9&5&ld" to loop-player
Sorry I couldn't get to your post sooner to help out. Once a post is solved, though, please mark it as such ^.^

- You can do that in the "edit title" menu when you edit the original post.