© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
AdmincraftA
Admincraft•2y ago•
7 replies
TryXqrd

skript help

command /list:
 trigger:
  loop all players:
   if region at loop-player is "a1" or "a2" or "a3" or "a4":
    add loop-player to {list::*}
    set {_list2} to a random element out of {list::*} 
    send "%{_list2}%"
    delete {list::*}
    delete {_list2}
command /list:
 trigger:
  loop all players:
   if region at loop-player is "a1" or "a2" or "a3" or "a4":
    add loop-player to {list::*}
    set {_list2} to a random element out of {list::*} 
    send "%{_list2}%"
    delete {list::*}
    delete {_list2}

Its supposed to give only name of one player as the random element but instead gives me the name of all the players in the defined region
AdmincraftJoin
10,704Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Skript and World Guard Help
AdmincraftAAdmincraft / questions
14mo ago
Skript Question
AdmincraftAAdmincraft / questions
14mo ago
skript crashing server
AdmincraftAAdmincraft / questions
4w ago
Teacher for Skript
AdmincraftAAdmincraft / questions
3mo ago