[Help] How to allow players to only use /player JUST_MYSELF shadow? Is this even possible? #1317
-
I run a survival server, however I only want to allow users to have access to shadow, just for themselves. I've figured out that I can use PlayerRoles to allow "player.*", however that allows complete access to the command. I have tried a couple things but can't seem to get something like "[email protected]" to work. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The best way would be to create a Scarpet script to wrap the Heres a quick example: __command() -> (
run('player ' + player()~'command_name' + ' shadow');
) If you save this in the |
Beta Was this translation helpful? Give feedback.
The best way would be to create a Scarpet script to wrap the
/player shadow
command.Heres a quick example:
If you save this in the
scripts
folder inside the world folder as a file calledshadow.sc
, then you can load the script with/script load shadow
and all players can use/shadow
, which will shadow them.