Project Essentials Cooldown

Documentation for Project Essentials Cooldown users and developers, describing commands, permissions and API methods and other.

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 here.

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).

How to Install

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 link and Forge 1.15.2 from it link. Move the downloaded mod to the mods folder (installation example below).

val MV = valueOf(your_minecraft_version)

.
β”œβ”€β”€ assets
β”œβ”€β”€ config
β”œβ”€β”€ libraries
β”œβ”€β”€ mods (that's how it should be)
β”‚   β”œβ”€β”€ Project Essentials Core-MOD-1.MV.X-1.X.X.jar (mandatory)
β”‚   β”œβ”€β”€ Project Essentials Permissions-1.MV.X-1.X.X.jar (recommended)
β”‚   └── Project Essentials Cooldown-1.MV.X-1.X.X.jar
└── ...

Dependencies

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).

Download dependencies: Core Β· Permissions

Final step

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.

Commands

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.

Permissions

ess.cooldown.bypass - for bypassing cooldown.

Configuration

Configuration location

Configuration documentation

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).

Also, if you need set common cooldown for any command, just use literals "*", "all", "any", i.e "any:5", where any random command and 5 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.

Just in case

If something goes according to the cunt, and your configuration flies, just delete the configuration or take the default configuration from here.

Default configuration:

Applying aliases

When you register your command with aliases, for cooldowns you need register aliases for cooldown api, just make it:

Cooldown as Dependency

Dev. Dependencies 1.14.4

Dev. Dependencies 1.15.2

Get as Dependency

API Documentation

@ todo: make in-table documentation instead code blocks. (If I forgot about this, please remind me of this in issue)

If you have any questions or encounter a problem, be sure to open an issue

Last updated

Was this helpful?