BetterTeams icon indicating copy to clipboard operation
BetterTeams copied to clipboard

commands cooldown

Open cocomws opened this issue 10 months ago • 1 comments

What is the bug?

here is my team.yml but the cooldown doesnt work

# This file is used to determine any /team commands which contain a cooldown or price . NOTE this currently does not work with /teama commands

# COOLDOWNS - Only let a player run a command every set number of seconds. 
# To bypass the cooldown have the permission node betterTeams.cooldown.bypass
# To add a cooldown to this file, an example is shown below
cooldowns:
- 'home: 1800'
- 'warp: 1800'
- 'setwarp: 1800'
- 'sethome: 1800'

# This option determines if the command cost is taken from the team balance first or the individual player
#
# Possible values: [true, false]
costFromTeam: true

Expected Behaviour

make the cooldown work

How to Reproduce

copy the team.yml file

Error message

/

Output of /teama version

Better Teams 4.9.1

Additional Information

/

cocomws avatar Apr 10 '24 16:04 cocomws

You should not have a space between the colon and the number, so instead of

cooldowns:
- 'home: 1800'

it should be

cooldowns:
- 'home:1800' 

Please let me know if the issue persists with this change.

booksaw avatar Apr 20 '24 14:04 booksaw

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 01 '24 05:06 stale[bot]

This issue is being closed for inactivity. If you are still having problems feel free to open a new issue linking this one, make sure you answer any questions asked in the new issue.

booksaw avatar Jun 30 '24 21:06 booksaw