Topic category: Advanced modding
I'm making a Mod that adds a command that executes another command on a random player every few seconds, I have the added command in and the command it's supposed to execute, my problem is adding a variable to select a random player online and apply the command to them
basically, my command i added: /friendall , the command is executes: /kill "player" , Where I want "player" to be a random person online.
my problem is I'm trying to add the variable for the command to select the random player from the server, and adding a delay so it constantly runs the command every few seconds.
anyone know what im missing?