Warning: This plugin is no longer receiving updates and may or may not work, especially on newer Minecraft versions. No support is given.
ABOUT
DarknessDamage is a plugin where the Darkness damages you! You can set the damage amount, timer, if it should kill the player, action bar message and more!
FEATURES
Plug & Play. Just drop in the plugins folder and configure.
Highly efficient with performance in mind since the start and highly optimized.
Hex colors in supported Minecraft versions.
Light Range. Set the light level range that damages players.
Task Settings. Change how often to check and damage players in the dark and how often to tell them they are in the dark.
Damage Settings. Set the amount of damage the players receive each task run. You can also set if the damage should kill the player or leave them at 1HP. You can also set the damage to increase by its self if the player stays in the darkness, resets when they enter the light.
Per World support. Configure the darkness to only damage you in set worlds or enable it in all.
Ignore players with light sources in their hand or with a bypass permission.
Execute commands when a player enters or leaves the darkness.
Code (YAML):
# Thank you for Downloading DarknessDamage! # # Feel free to check out my other plugins here: # https://www.spigotmc.org/members/429752/#resources
# Put all the worlds you want this enabled in, add * for all worlds. Enabled Worlds: -
"world" # - "*"
# How often in tick should we check if we should damage players. # 20 ticks = 1 second. Damage Task Timer: 30
# The light level range of what damages you. Light Range: 0-6
# Damage to deal to the player each task run. Damage: 1
# Should we increase the damage the longer the player is in the dark? # Example: The damage will start at 2 then increase to 4 then 6 etc. # until the player steps back into the light which it rests back to 2 for next time. Damage Increases: true
# Should the damage kill the player or just leave them at 1 hp? Damage Kills: true
# Execute commands on some events Commands:
# Commands to fire when the player enters the darkness. Empty to disable. Enter: -
"" # - "say %player% entered darkness" # - "kill %player%"
# Commands to fire when the player leaves the darkness. Empty to disable. Leave: -
"" # - "say %player% entered the light"
# Should the plugin not damage players with light sources in their main/off hand? # Configure the valid light sources below. Ignore Light Sources In Hand: