Project Essentials Core
Documentation for Project Essentials Core users and developers, describing commands, permissions and API methods and other.
This is the base module (core
) for all other Project Essentials modules. It contains the necessary dependencies that are used in other modules, for example Kotlin std lib and Kotlinx Serialization and Brigadier, this core also contains common code, for example, the initialization process and some extensions of existing forge classes, which can be useful and can reduce duplicate code.
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 (marked -MOD
in the file name) to the mods
folder (installation example below).
If there is already a modification that loads the kotlin
and kotlinx serialization
libraries, then download the -API
modification, instead of -MOD
.
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: Cooldown ยท Permissions
Let's check 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.
Vanilla Replacements
For compatibility with the Permissions module, all the native Vanilla commands have been rewritten in the Core module, they simply replace them with the addition of a check for the permissions and operator level.
In this regard, if you have the Permissions module installed, you will need to issue permissions to the native Vanilla commands. By default, all commands (with operator level 0) available to the player will be available (they are pre-registered in the permissions). The permissions to use the native Vanilla commands are very simple and consist of the command name itself, for example: native.time
(for the/time
command), or for example: native.ban
(for the/ban
command). Exceptions: /me
, for this command the right is native.message
.
Commands aliases
Command aliases are declared in the configuration, by default several popular aliases are made to which many players are used to, they are described in the table below.
Configuration
Configuration location
Configuration documentation
Below is a table with documentation for some properties from the configuration of native commands.
Using as API
Dev. Dependencies 1.14.4
Dev. Dependencies 1.15.2
Get as Dependency
:: Only for Forge 1.14.4 ::
:: Only for Forge 1.15.2 ::
API Consts
API Functions
API Extensions
@ CommandSourceExtensions.sendMsg
arguments:
API Helpers
If you have any questions or encounter a problem, be sure to open an issue
Last updated