Placeholders
Placeholders are used to replace text with pre-generated values set by Essence. You can use these placeholders to set values that may change often such as versions. Placeholders are handled by Essence and do not require any other plugins to work within Essence. However, if you'd like to use other plugin's placeholders in Essence, or Essence's in them - you'll need to install PlaceholderAPI.
Placeholder list
Placeholder | Description | Example |
---|---|---|
| Gets the version of Essence the server is running. |
|
| Gets the version of Minecraft the server is running. |
|
| Gets the current time in format HH:MM:SS |
|
| Gets the current date in format YYYY-MM-DD |
|
| Gets the current date and time in format YYYY-MM-DD HH:MM:SS |
|
| The player who initiated the message's displayname |
|
| The player who initiated the message's username |
|
| The player's team's name. |
|
| The player's team's name. |
|
| The player's team's prefix. |
|
| The player's combined prefix.^1 |
|
| The player's prefix.^2 |
|
| The player's suffix. |
|
| The player's balance. |
|
^1 This feature will work but may be limited without Vault and a permissions plugin (we recommend LuckPerms).
^2 Requires Vault and a permissions plugin (we recommend LuckPerms).
Where can I use placeholders?
Placeholders work in:
Chat messages (if Essence Chat has not been disabled and Vault is installed)
config.yml
chat.name-format
motd.message
broadcasts.first-join
broadcasts.join
broadcasts.leave
rules.txt
Some of Essence's commands
/broadcast
/msg
/r
Language files (since 1.10.0)
PlaceholderAPI
PlaceholderAPI is a system that allows for cross-compatability with other plugin's placeholders.
With PlaceholderAPI installed, our placeholders work in all the above areas and anywhere else with PlaceholderAPI support, plus you can also use any placeholders from other plugins that also support PlaceholderAPI in these places in Essence.
You don't need to install PlaceholderAPI to use placeholders, but if you do have it you can also use any other placeholders supported by that plugin in these places too.
You DO NOT need PlaceholderAPI if:
You are only using Essence's placeholders in Essence commands, files, or systems.
You DO need PlaceholderAPI if:
You want to use Essence's placeholders in other plugins.
You want to use other plugin's placeholders in Essence.
You want to use PlaceholderAPI's built-in placeholders in Essence.
Language Files
Language Files support the placeholder list above, and also use their own form of placeholders called arguments.
Arguments appear as a number inside curly braces, for example {{1}}
, {{2}}
.
These should not be changed or removed. These values are set by the function in Essence that causes that message to be sent. For example Teleported to LewIsLost
appears as Teleported to {{1}} in the language file.
If you remove or change arguments, the messages will very likely be malformed. You can change any other part of the language strings, add new things such as placeholders, but you should make a custom language as it may be overwritten by an update.
If you accidentally break a language file, running /es restore
will overwrite any changes you've made with our default files.