Jump to content
  • 0

Cooldown


Balloonicron

Question

Trying to figure out how to add a cooldown to commands in the Shop plugin.  I know there is a cooldown section and it works for items.  I just cannot get it to work for commands.  I tried using TimedCommandBlocker, but it also doesn't want to do what I want. 

Anyone got any idea's?

TimedCommandBlocker:
  "Enable logging": true,
  "Chat steamID icon": 0,
  "Сommand color": "#FFFF00",
  "Remaining blocking time color": "#FFA500",
  "Blocked commands (command: seconds)": [
    {
      "spawnmini.give": "Blocked for two minutes",
      "Info.Timed": : 120.0
    },

And Cooldowns in the Shop plugn:
{
  "rifle.ak": 600,
  "rifle.lr300": 600,
  "spawnmini.give": 120
}

I'm really bad with coding.  So It's probably pretty easy.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 11/8/2022 at 7:54 PM, Balloonicron said:

Trying to figure out how to add a cooldown to commands in the Shop plugin.  I know there is a cooldown section and it works for items.  I just cannot get it to work for commands.  I tried using TimedCommandBlocker, but it also doesn't want to do what I want. 

Please use this for plugin support
https://codefling.com/plugins/shop-ui?tab=support

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

100.5k

Files Sold

Total number of files sold.

2m

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.