A new fatalInjury option has been added under playerDamage (default: disabled).
It does not prevent fatal damage (e.g., falling from a great height, /kill, etc.).
Note:
If you do not need the fatalInjury feature, you can ignore this update or update without making any changes.
If you are upgrading from v5.2 to v5.3, simply add fatalInjury: true under playerDamage. A configuration example has been provided below.
Code (YAML):
playerDamage
:
# -> Prevent players from taking damage (e.g., no hurt or knockback)
enable
: true
# Enable or disable
fatalInjury
: false
# Will not prevent fatal damage (e.g., high fall, /kill, etc.)
message
:
"&cYou cannot be harmed in this world!"
# Message shown when blocked (supports PlaceholderAPI). Comment or remove to show nothing.