Project Essentials Cooldown
Documentation for Project Essentials Cooldown users and developers, describing commands, permissions and API methods and other.
Last updated
Was this helpful?
Documentation for Project Essentials Cooldown users and developers, describing commands, permissions and API methods and other.
Last updated
Was this helpful?
This module is responsible for cooldown Minecraft commands. The mod adds a delay for the use of commands, prevents command-spamming and limits the number of uses for a certain time. A mod can also create cooldown for command aliases. The delay and other settings are controlled by the configuration of the mod. Useful information and documentation are .
You can also use the API, for example, as a delay in the use of an item or the like, but instead of commands, you can use identifiers. (This is one of the ideas for use by third-party developers).
For start the modification, you need installed Forge, it is desirable that the version matches the supported versions. You can download Forge 1.14.4 from the and Forge 1.15.2 from it . Move the downloaded mod to the mods
folder (installation example below).
Also do not forget to install dependencies, only two types of dependencies: mandatory (game will not start without a mod) and recommended (without a mod, game can start, but I recommend using it).
Now try to start the game, go to the mods
tab, if this modification is displayed in the mods
tab, then the mod has been successfully installed.
Name
Permission
Op level
Description
/cooldown
ess.cooldown
4
Print in chat cooldown version and other information.
/cooldown save
ess.cooldown.save
4
Save cooldown configuration.
/cooldown reload
ess.cooldown.reload
4
Reload cooldown configuration without saving.
ess.cooldown.bypass
- for bypassing cooldown.
CommandCooldowns
configuration section.CommandCooldowns
contains an array of command cooldowns, each element of the array (cooldown) must have the command name
and cooldown value
; it looks like "heal:10" where heal it command and 10 it command cooldown (in seconds).
IgnoredPlayers
configuration section.IgnoredPlayers
contains an array of player nicknames; Just it contain players what not get restrictions on the use of commands.
If something goes according to the cunt, and your configuration flies, just delete the configuration or take the default configuration from here.
Default configuration:
When you register your command with aliases, for cooldowns you need register aliases for cooldown api, just make it:
:: For Forge 1.14.4 only ::
:: For Forge 1.15.2 only ::
@ todo: make in-table documentation instead code blocks. (If I forgot about this, please remind me of this in issue)