9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-30 04:09:09 +00:00

Add configurable cap on the damage players can take in a single hit

This commit is contained in:
Samsuik
2025-10-12 23:39:34 +01:00
parent 564c431446
commit 966bf92a3a
2 changed files with 19 additions and 0 deletions

View File

@@ -152,6 +152,12 @@ public final class WorldConfiguration extends ConfigurationPart {
public boolean oldEnchantedGoldenApple = false;
public boolean oldSoundsAndParticleEffects = false;
public boolean fastHealthRegen = true;
@Comment(
"The maximum damage a player can take in a single hit.\n" +
"This can prevent arrows and maces instantly killing players."
)
public DoubleOr.Disabled maxDamage = DoubleOr.Disabled.DISABLED;
public IntOr.Default maxArmourDamage = IntOr.Default.USE_DEFAULT;
}