How to make a private command?


I’m looking for a way for only one person to use a command, but I do not know how or what to use to do that command


You can use $(eval) to check for a certain username:

!addcom -cd=5 !testcommand $(eval '$(user)'=='specificUser'?'[command response here]':'$(user), you cannot use this command!')

Replace specificUser with the person you want to be able to use the command and replace [command response here] with your own command response. And of course feel free to change the command name to whatever you want.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.