Comments (1)
Having cooldowns built into DeluxeMenus is not a bad idea.
Notes:
- Built-in cooldowns should be ephemeral (persist until the plugin is unloaded)
- Should be one of the first validations done
- Should be global, per menu and item
- Should have a maximum value (suggestion: 3600 seconds / 72000 ticks)
People who want longer cooldowns should use existing solutions such as MasterCooldowns or temporary permissions.
Temporary solution
How to create cooldowns using MasterCooldowns:
- Start by creating a requirement (view/click/open)
requirements:
cooldown:
type: string equals
input: '%mcd_isinactive_COOLDOWN-ID%'
output: 'Yes'
deny_commands:
- '[message] &cTry again in %mcd_left_formatted_COOLDOWN-ID%, you are on cooldown!'
- Add the cooldown (e.g. on click)
[console] mcd add %player_name% COOLDOWN-ID duration
This is not the only way to create cooldowns for DM, temporary permissions being another example.
from deluxemenus.
Related Issues (20)
- [BUG] In 1.20.6 head textrue not show HOT 2
- 1.20.6 HOT 1
- Multiple flags not working HOT 1
- pls support folia
- DM parsing PAPI placeholder before parsing Args placeholder HOT 6
- Placeholder for X doesn't work in commands HOT 8
- Minecraft 1.20.4 HOT 3
- Using the mod in the plugin HOT 1
- placeholder action return empty HOT 4
- Suggestion: new click option HOT 2
- Placeholders that parse with a \n do not display correctly. HOT 1
- Bug HOT 1
- [IMPROVE] Spawner Item in menu HOT 1
- Hide attributes is not working for spawners HOT 3
- 1.20.5 paper is out! HOT 6
- ArmorItem issue HOT 1
- Menu Title View Requirement
- add action title and subtitle HOT 1
- New line characters are not ignored in item display name HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deluxemenus.