I have a simple execute command:
/execute as player2 at @s run skript:examplecommandname
And what I want is that it kind of works like a sudo command. I want it to give the playername to the command in the skript so that I can access it using player. However if player1 runs the given command on player2 it will still pass player1 to the skript file. Is there a way to resolve this? perhaps passing in a selector like @p and processing it in the skript
/execute as player2 at @s run skript:examplecommandname
And what I want is that it kind of works like a sudo command. I want it to give the playername to the command in the skript so that I can access it using player. However if player1 runs the given command on player2 it will still pass player1 to the skript file. Is there a way to resolve this? perhaps passing in a selector like @p and processing it in the skript