#Looping all players in a list variable

1 messages · Page 1 of 1 (latest)

vapid cobalt
#

Why won't this work:

    loop all players in {helper::%uuid of all players%::*}:
        execute console command "luckperms user %loop-player% permission set worldedit.* true"```
Its suppost to give all world edit perms to players who are helper.
strange zinc
#

you would just loop {list::*}: to loop it's contents..

vapid cobalt
#

Yes but

strange zinc
#

and UUID of all players isnt a thing

vapid cobalt
#

Okay but

#

do I just do %loop-value% then in the console command?

#

because it might replace it with multiple players instead

strange zinc
#

try loop-value's name

vapid cobalt
#

that didnt work 😦

strange zinc
prime cedar
#

but what?

thorny fox
#

Why are you looping it on load and not checking a on join player event to see if they are contained within that variable list and then give the perms?