LifeLossBan
Using this plugin, you're able to punish players whenever they die by taking away permanent health. However, the twist on it is that once the player reaches below 0 hearts they get banned from the server!
Commands
/resethearts [Username] » Reset a players hearts back to the default value
/sethearts [Amount] [Username] » Set a players hearts to a certain heart value
/heartnote [Amount] [Username] » Create a heart note with a specific heart value that'll be given to whoever rights clicks with it in hand
/deposithearts [Amount] » Take away some of your own hearts to create a heart note
Permissions
OP-Access » LifeLossBan.*
ADMIN COMMANDS
/resethearts » LifeLossBan.admin.resethearts
/sethearts » LifeLossBan.admin.sethearts
/heartnote » LifeLossBan.admin.heartnote
BASIC COMMANDS
/deposithearts » LifeLossBan.deposithearts
Resethearts Command
Sethearts Command
Heartnote Command
Deposithearts Command
Default Config File
Code (YAML):
# The prefix in every message sent by the plugin
prefix
:
"&4&lLife&cLoss&fBan > "
# The amount of hearts lost on death by a player (1 = Half a Heart)
pvp-loss
: 2
# Set this to either True or False for if you want the players items to be deleted on death by another player
pvp-delete-items
: False
# The amount of hearts lost on death by a non-player (1 = Half a Heart)
non-pvp-loss
: 5
# Set this to either True or False for if you want the players items to be deleted on death by a non-player
non-pvp-delete-items
: False
# Set this to either True or False for if you want to allow players to obtain over 20 hearts through claiming deposited hearts
overclaim-hearts
: False
# The message that is sent once a player reaches half a heart
warning-message
:
"&c&lYou have reached half a heart. Be careful, as the next time you die you'll be banned from the server."
# Set this to either True or False for if you want the warning message to be sent
send-warning
: True
# The kick message for when a player runs out of hearts, this is what the player will first see after losing all hearts
kick-message
:
"You have been banned from the server."
# The ban message for when a player runs out of hearts, this is what the player will see after trying to reconnect to the server
ban-message
:
"You have been banned from the server."
# Set the duration of the ban here
# Leaving it blank will ban the player permanently
# You can declare certain times, and even combine them, such as: 1h, 31d, 2w, 6m
ban-duration
:
""
# Set the amount of hearts (1 = Half a Heart) that an unbanned player joins back with
unban-hearts
: 20
Important Information
If you have any suggestions or if you have any errors when running the plugin, please message me! I'm here to help and resolve any issues you may have with the plugin.