Config
Last updated
Last updated
The hardcore feature in the plugin is one of the biggest features in the whole plugin. On this page, I will explain every config line you need to know about. To go to the plugin’s config, simply go to your server -> file manager -> open the plugins folder -> EasySMP folder -> config.yml
Enabling Hardcore
To enable hardcore, open the config.yml
file in the "EasySMP" data folder. Open it and at the top, there is an option called "hardcore":
If you set it to true
, you have enabled hardcore. When enabling this, it requires a restart so that the plugin can apply all the changes and apply hardcore in-game, so that you have the nice hardcore hearts.
You can start a grace period in-game by doing /hardcore grace start
. This will start the grace period you have set up in the config. To stop the grace period, you can do /hardcore grace stop
. This will do the exact same as when it ends automatically. You can set the grace period time in the config under "hardcore". You can use s
, m
, h
, d
:
s
= seconds
m
= minutes
h
= hours
d
= days
During the grace period, you will not take any damage — even from mobs!
Each player has a set amount of lives. If you have 1 life left and you die, you lose. You can set the default lives under "hardcore" and then lives
. Use the %easysmp_lives%
placeholder if you want to get the player's lives.
If you want to give or take players' lives, you can do /playerdata set lives (player) (number)
. Check the page to get more info on the command/file.
Make sure you set the respawn-world
in the config!!
If you want to enable gaining a life when you kill someone, you can toggle that. The player you killed loses a life, and you get a new one.
When a player dies, they will be put in spectator mode if the time is not -1 or 0. If you don’t want the player to be able to spectate, you can set the time to -1
, and they will be punished instantly. If you want the player to spectate infinitely, set it to 0
.
You can only change the final death message. If the player has more than 1 life, the death message would be:
ClearedSpore has died and lost 1 life. They are now at 1
When you die and had 1 life left, it will send a death message and send the player that died a title.
You can use %player%
as a placeholder for the player that died. For the titles, you can add multiple entries. They will not all be sent — one will be chosen randomly. If you only want to show one title, you can just add one line.
Example:
When the spectate time ends, the player will be punished using commands. These are console commands, and you can use %player%
as a placeholder for the player who died.
When you do /hardcore revive (player)
, it will run the console commands. Same as with punishment, you can use %player%
as a placeholder for the player who got revived.
It is highly recommended not to use a /tempban
in the punishment, since that could result in the player joining with 0 lives. If a player joins and has 0 lives, the system will break for that player.
When the player joins and has not been revived, the system will kick them and send a webhook.
Kick message:
if the discord webhook is enabled:
If the player joined and has 0 lives
if the discord webhook is enabled:
In the config, you need to set a few values. The world
value will be the world where the end event is played. You can use a separate world if you want to have a clean landscape instead of your normal survival world.
Under border
, you have to set 3 options:
start
: The starting border size. It sets the border to this value when the event begins.
end-border
: The smallest the border can become. For example, if it’s set to 10, the border will stop shrinking at 10 blocks.
close
: The number of blocks the border shrinks when a player dies. If the border is 500 and someone dies, it shrinks to 450.
The death-message
is the message sent when a player dies. You can use the %player%
, %killer%
, and %players_alive%
placeholders. If there is no killer (like fall damage), the plugin will use a default message. Color codes work!
The time
is how long until sudden death activates. Check more about this feature elsewhere. When the sudden death timer starts, it sends an action bar to everyone showing the remaining time. You can disable this by setting actionbar
to false
.
⚠️ DO NOT CHANGE eventactive
OR freezed
!!
The plugin uses these when you start the event.
If freezed
is set to true when the server starts, it will freeze everyone.
If eventactive
is set to true, it will apply death events and more.
Extensions There are 2 extensions: PlaceholderAPI and Discord Webhook.
PlaceholderAPI
For the hardcore value, you can change how it looks. If hardcore is enabled, you can set it to '&aYes'
, and if it is disabled, '&cNo'
.
Discord For Discord, you have to provide a webhook — otherwise, it will not send any messages. It should not give errors, except from its own logger. More info here: