Author Topic: [PSA] Can we all start adding spam prevention to commands?  (Read 1070 times)

I'm seeing easily spammable command add-ons being released and it's incredibly easy to give them a cooldown timer.

$Pref::Server::Addon::CooldownSeconds = 1;

function serverCmdDoThing(%client) {
   if($Sim::Time - %client.lastCommandTime < $Pref::Server::Addon::CooldownSeconds) {
      return;
   }
   %client.lastCommandTime = $Sim::Time;

   // stuff
}


It's just a couple of extra lines :(

Point case: old dupsave.

Point case: old dupsave.
probably the most important case too

/forcerm master race

I love popping into random servers running MSP and just flooding the stuff out of their chat until they decide to remove it in total

User was banned for this post
« Last Edit: March 16, 2016, 02:14:51 PM by Badspot »

/forcerm master race

I love popping into random servers running MSP and just flooding the stuff out of their chat until they decide to remove it in total
That's a stuffty thing to do.


/forcerm master race

I love popping into random servers running MSP and just flooding the stuff out of their chat until they decide to remove it in total
ikr
cya

cya
I meant it in a past tense thing, nobody really uses MSP anymore anyways. I'd honestly be admitting to trolling except for the fact that I used to do this stuff years ago when I was an starfish and exploited hacks

Honestly, it's a richard move on my part but hey, it was actually funny

i added them to my petmod a while back so i was doing it before it was cool