i created a chatcommand but i want the players to have to wait 5 minutes to use the command again
i found this thread but i dont understand it
Using give item command as a timer
Solved Adding a cooldown/delay for chat command?
Discussion in 'Rust Development' started by Bruno Puccio, Mar 1, 2018.
-
Wulf Community Admin
You'd need to store when the command was used last, and then check that the next time it is used.
See Adding a cooldown to a command? and CommandRateLimiter. -
man thank you it really helped me, but one question, if i want all players to have the permission, can i just delete the
Code:void OnServerInitialized() { permission.RegisterPermission(Perm, this); //Register the permission when the server initializes }
Code:void cmdTestCommand(BasePlayer player, string cmd) { if (permission.UserHasPermission(player.UserIDString, Perm)) //Check if the player has the permission "Perm" {} }
-