SharpTimer icon indicating copy to clipboard operation
SharpTimer copied to clipboard

Seperate Saveloc(tp) cooldowns

Open erdemozor opened this issue 1 year ago • 0 comments

A server I was playing in had set the command cooldown time higher than normal and css_tp commands would also get affected. I separated the teleport cooldown in the configs with a new variable "sharptimer_command_saveloc_cooldown" accepting floats like the "sharptimer_command_spam_cooldown" variable.

I also made necessary changes to ChatCommands.cs for the css_tp command:

            if (playerTimers[player.Slot].TicksSinceLastCmd > cmdSavelocCooldown)
            {
                //Updated do nothing
            }

Tested today and it seems to work.

erdemozor avatar May 27 '24 21:05 erdemozor