Jump to content

Spamming spawn command lags the server

Closed 1.3.1

some players bound a key to spawn certain police vehicles and i noticed that when they spam that button, it lags the entire server with multiple 500ms nre's.  (doesn't matter if they can or cannot spawn one)

 

Can you please add a cooldown to the commands or fix this somehow?

Share this comment


Link to comment

Hello, unfortunately the first thing that the plugin does when the command is ran is a permission check. This means that if I were to add a cool down this would still be checked after checking if the player has permission to use the command which would not help in your situation. I cannot think of another option on what to do as the permission check is as simple and optimised as it can be. My only advise is to warn and kick/ban players who are spam running commands that they should not be running. 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.3k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.