So I'm making a sort of AFK Pool/ AFK Reward system so when the player is standing on a redstone block for an hour, they get a key. They problem with that is I am using the goldencrates plugin. Goldencrates requires you to list the player on who the key is being given to. Is there any way in my code I can make the player execute the command but put their name as an argument. I attached a file showing my code.
Code:
on join:
while player is online:
if block under player is block of redstone:
add 1 to {points::%uuid of player%}
if {points::%uuid of player%} >= 1:
remove 1 from {points::%uuid of player%}
make player run command "crate givekey {%player%} afk" as op
wait 60 minutes
Attachments
Last edited: