diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/BreaklessnessCurse.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/BreaklessnessCurse.java index 9548dd70..ff191323 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/BreaklessnessCurse.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/BreaklessnessCurse.java @@ -15,6 +15,11 @@ public class BreaklessnessCurse extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDamageBlock(@NotNull final Player player, @NotNull final Block block, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/HarmlessnessCurse.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/HarmlessnessCurse.java index 2521ff04..9b261644 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/HarmlessnessCurse.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/HarmlessnessCurse.java @@ -14,6 +14,11 @@ public class HarmlessnessCurse extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/MisfortuneCurse.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/MisfortuneCurse.java index cf423826..dc3f3d2c 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/MisfortuneCurse.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/curse/MisfortuneCurse.java @@ -15,6 +15,11 @@ public class MisfortuneCurse extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onBlockBreak(@NotNull final Player player, @NotNull final Block block, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arborist.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arborist.java index 3cb557f8..54f21476 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arborist.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arborist.java @@ -25,6 +25,11 @@ public class Arborist extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onBlockBreak(@NotNull final Player player, @NotNull final Block block, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arcanic.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arcanic.java index 3d60c3f1..bdffb91a 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arcanic.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Arcanic.java @@ -14,6 +14,11 @@ public class Arcanic extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDamageWearingArmor(@NotNull final LivingEntity victim, final int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Beheading.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Beheading.java index dea660af..c90c6d84 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Beheading.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Beheading.java @@ -22,6 +22,11 @@ public class Beheading extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onDeath(@NotNull final EntityDeathEvent event) { if (event.getEntity().getKiller() == null) { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java index 7390693f..841b56de 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java @@ -23,6 +23,11 @@ public class BlastMining extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onBlockBreak(@NotNull final Player player, @NotNull final Block block, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Bleed.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Bleed.java index 5360adcf..400b47c8 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Bleed.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Bleed.java @@ -17,6 +17,11 @@ public class Bleed extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Blind.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Blind.java index 765ab4f9..3836c2bb 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Blind.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Blind.java @@ -19,6 +19,11 @@ public class Blind extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlockBreather.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlockBreather.java index 6d7c256a..8a8473a3 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlockBreather.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlockBreather.java @@ -14,6 +14,11 @@ public class BlockBreather extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDamageWearingArmor(@NotNull final LivingEntity victim, final int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Conclude.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Conclude.java index 6396856f..5e611a02 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Conclude.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Conclude.java @@ -16,6 +16,11 @@ public class Conclude extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onTridentDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Disable.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Disable.java index 7bd38647..9688d06a 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Disable.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Disable.java @@ -16,6 +16,11 @@ public class Disable extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Dullness.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Dullness.java index 664ebdca..5a3ef65a 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Dullness.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Dullness.java @@ -17,6 +17,11 @@ public class Dullness extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Economical.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Economical.java index b6ca77a6..4ca7c6c6 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Economical.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Economical.java @@ -17,6 +17,11 @@ public class Economical extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onElytraBoost(@NotNull final PlayerElytraBoostEvent event) { if (!EnchantChecks.chestplate(event.getPlayer(), this)) { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Electroshock.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Electroshock.java index 77521e8e..4fa6818e 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Electroshock.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Electroshock.java @@ -17,6 +17,11 @@ public class Electroshock extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDeflect(@NotNull final Player blocker, @NotNull final LivingEntity attacker, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Evasion.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Evasion.java index bb95fb06..7fd8c83c 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Evasion.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Evasion.java @@ -14,6 +14,11 @@ public class Evasion extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDamageWearingArmor(@NotNull final LivingEntity victim, final int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Extinguishing.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Extinguishing.java index 5546f11a..39dda6a2 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Extinguishing.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Extinguishing.java @@ -14,6 +14,11 @@ public class Extinguishing extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDamageWearingArmor(@NotNull final LivingEntity victim, final int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Famine.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Famine.java index 039ff92a..4946897a 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Famine.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Famine.java @@ -16,6 +16,11 @@ public class Famine extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finality.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finality.java index 80d284b7..993d0bef 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finality.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finality.java @@ -16,6 +16,11 @@ public class Finality extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finishing.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finishing.java index 23df4797..07680e10 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finishing.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Finishing.java @@ -15,6 +15,11 @@ public class Finishing extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Flinch.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Flinch.java index 1afedef7..072035b1 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Flinch.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Flinch.java @@ -18,6 +18,11 @@ public class Flinch extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDeflect(@NotNull final Player blocker, @NotNull final LivingEntity attacker, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Freerunner.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Freerunner.java index c6db7e1b..a2d576c3 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Freerunner.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Freerunner.java @@ -14,6 +14,11 @@ public class Freerunner extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onFallDamage(@NotNull final LivingEntity faller, final int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Frozen.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Frozen.java index e7408da9..0782beab 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Frozen.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Frozen.java @@ -20,6 +20,11 @@ public class Frozen extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onHurt(@NotNull final EntityDamageByEntityEvent event) { if (!(event.getEntity() instanceof Player player)) { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Fury.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Fury.java index 08123a21..96410c97 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Fury.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Fury.java @@ -20,6 +20,11 @@ public class Fury extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Graceful.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Graceful.java index c724bee7..588e9024 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Graceful.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Graceful.java @@ -20,6 +20,11 @@ public class Graceful extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onFall(@NotNull final PlayerMoveEvent event) { Player player = event.getPlayer(); diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IceShot.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IceShot.java index 0324ea6e..aa808d93 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IceShot.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IceShot.java @@ -18,6 +18,11 @@ public class IceShot extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Identify.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Identify.java index 95684921..51a06410 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Identify.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Identify.java @@ -18,6 +18,11 @@ public class Identify extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDeflect(@NotNull final Player blocker, @NotNull final LivingEntity attacker, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Ignite.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Ignite.java index b2b9cc04..67acefb3 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Ignite.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Ignite.java @@ -19,6 +19,11 @@ public class Ignite extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowHit(@NotNull final LivingEntity uncastShooter, final int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IllusionAspect.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IllusionAspect.java index ead91aa4..c6dcd743 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IllusionAspect.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/IllusionAspect.java @@ -16,6 +16,11 @@ public class IllusionAspect extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Impact.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Impact.java index cd8deb48..902b73b2 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Impact.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Impact.java @@ -16,6 +16,11 @@ public class Impact extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onTridentDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Infuriate.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Infuriate.java index 19979274..2a2b69db 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Infuriate.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Infuriate.java @@ -21,6 +21,11 @@ public class Infuriate extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDeflect(@NotNull final Player blocker, @NotNull final LivingEntity attacker, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lesion.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lesion.java index b0410c9f..a8359a7b 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lesion.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Lesion.java @@ -18,6 +18,11 @@ public class Lesion extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onTridentDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Levitate.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Levitate.java index 2f6f3ab1..a9fd3f02 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Levitate.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Levitate.java @@ -19,6 +19,11 @@ public class Levitate extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/LuckyCatch.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/LuckyCatch.java index 677981e4..0be67270 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/LuckyCatch.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/LuckyCatch.java @@ -19,6 +19,11 @@ public class LuckyCatch extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onFish(@NotNull final PlayerFishEvent event) { Player player = event.getPlayer(); diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Necrotic.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Necrotic.java index 1bb4f546..6de03256 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Necrotic.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Necrotic.java @@ -20,6 +20,11 @@ public class Necrotic extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void necroticKill(@NotNull final EntityDeathEvent event) { if (event.getEntity().getKiller() == null) { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Paralyze.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Paralyze.java index f711475f..3bd3ca4d 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Paralyze.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Paralyze.java @@ -18,6 +18,11 @@ public class Paralyze extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDeflect(@NotNull final Player blocker, @NotNull final LivingEntity attacker, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rage.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rage.java index c1782869..ba154cf2 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rage.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rage.java @@ -21,6 +21,11 @@ public class Rage extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Reaper.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Reaper.java index 52abe244..2b7ef38e 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Reaper.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Reaper.java @@ -2,6 +2,7 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal; import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.meta.EnchantmentType; +import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; public class Reaper extends EcoEnchant { public Reaper() { @@ -10,5 +11,10 @@ public class Reaper extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + // Actual code is in soulbound. } diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sating.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sating.java index 30ef9bb7..0b77b06c 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sating.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sating.java @@ -16,6 +16,11 @@ public class Sating extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onSatingHunger(@NotNull final FoodLevelChangeEvent event) { if (!(event.getEntity() instanceof Player player)) { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sickening.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sickening.java index 85d3b246..7677fd0b 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sickening.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Sickening.java @@ -19,6 +19,11 @@ public class Sickening extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Spearfishing.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Spearfishing.java index 0b1b2c28..b14f17b4 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Spearfishing.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Spearfishing.java @@ -28,6 +28,11 @@ public class Spearfishing extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onSpearfishingLand(@NotNull final ProjectileHitEvent event) { if (event.getEntityType() != EntityType.TRIDENT) { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stalwart.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stalwart.java index d99a0e96..1e3858b3 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stalwart.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stalwart.java @@ -17,6 +17,11 @@ public class Stalwart extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onDamageWearingArmor(@NotNull final LivingEntity victim, final int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stamina.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stamina.java index 016320e9..53756b54 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stamina.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Stamina.java @@ -16,6 +16,11 @@ public class Stamina extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @EventHandler public void onStaminaHunger(@NotNull final FoodLevelChangeEvent event) { if (!(event.getEntity() instanceof Player player)) { diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StoneSwitcher.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StoneSwitcher.java index 4e94d0e6..48d5d2bc 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StoneSwitcher.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StoneSwitcher.java @@ -21,6 +21,11 @@ public class StoneSwitcher extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onBlockBreak(@NotNull final Player player, @NotNull final Block block, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StrayAspect.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StrayAspect.java index a064e3fc..11cf512f 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StrayAspect.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/StrayAspect.java @@ -17,6 +17,11 @@ public class StrayAspect extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Supercritical.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Supercritical.java index e6911baf..2de2131a 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Supercritical.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Supercritical.java @@ -15,6 +15,11 @@ public class Supercritical extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thor.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thor.java index beb37eaa..2e0a3ac5 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thor.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thor.java @@ -16,6 +16,11 @@ public class Thor extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Toxic.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Toxic.java index cb57fcc3..212f98af 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Toxic.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Toxic.java @@ -16,6 +16,11 @@ public class Toxic extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Transfuse.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Transfuse.java index 1fdd6db4..6e6d8217 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Transfuse.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Transfuse.java @@ -21,6 +21,11 @@ public class Transfuse extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onBlockBreak(@NotNull final Player player, @NotNull final Block block, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/VampireAspect.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/VampireAspect.java index 41a873b5..6dbe0c7e 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/VampireAspect.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/VampireAspect.java @@ -16,6 +16,11 @@ public class VampireAspect extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Venom.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Venom.java index db5c73d4..730ac04d 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Venom.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Venom.java @@ -17,6 +17,11 @@ public class Venom extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/WoodSwitcher.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/WoodSwitcher.java index 34c3f6f1..29228f92 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/WoodSwitcher.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/WoodSwitcher.java @@ -22,6 +22,11 @@ public class WoodSwitcher extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onBlockBreak(@NotNull final Player player, @NotNull final Block block, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Wound.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Wound.java index 3bc20a94..86a81ed2 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Wound.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Wound.java @@ -18,6 +18,11 @@ public class Wound extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Zeus.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Zeus.java index fdc9cd5b..c2deb5bb 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Zeus.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Zeus.java @@ -17,6 +17,11 @@ public class Zeus extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onArrowDamage(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Bolt.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Bolt.java index 7ca827f2..7a1f72da 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Bolt.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Bolt.java @@ -16,6 +16,11 @@ public class Bolt extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Confusion.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Confusion.java index 3ebf59e3..127e8777 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Confusion.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Confusion.java @@ -20,6 +20,11 @@ public class Confusion extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity attacker, @NotNull final LivingEntity uncastVictim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Volatile.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Volatile.java index d8cc2c04..60d9e4b8 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Volatile.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Volatile.java @@ -17,6 +17,11 @@ public class Volatile extends EcoEnchant { ); } + @Override + public String getPlaceholder(final int level) { + return EnchantmentUtils.chancePlaceholder(this, level); + } + @Override public void onMeleeAttack(@NotNull final LivingEntity uncastAttacker, @NotNull final LivingEntity victim, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java index 9426370b..c3681272 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java @@ -33,6 +33,18 @@ public class EnchantmentUtils { return NumberUtils.randFloat(0, 1) < ((enchantment.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "chance-per-level") * level) / 100); } + /** + * If the enchantment has successfully passed its specified chance. + * + * @param enchantment The enchantment to query. + * @param level The level to base the chance off of. + * @return If the enchantment should then be executed. + */ + public static String chancePlaceholder(@NotNull final EcoEnchant enchantment, + final int level) { + return NumberUtils.format(enchantment.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "chance-per-level") * level); + } + /** * If attack was fully charged if required. * diff --git a/eco-core/core-plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml b/eco-core/core-plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml index 47fff934..96a0d3ad 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml @@ -3,7 +3,7 @@ # name: "Curse of Breaklessness" -description: Chance to prevent block breaking. +description: '&a%value%%&r chance to prevent block breaking.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/curse/harmlessnesscurse.yml b/eco-core/core-plugin/src/main/resources/enchants/curse/harmlessnesscurse.yml index b7a507b9..63e64d8b 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/curse/harmlessnesscurse.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/curse/harmlessnesscurse.yml @@ -3,7 +3,7 @@ # name: "Curse of Harmlessness" -description: Chance for attacks to do nothing. +description: '&a%value%%&r chance for attacks to do nothing.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/curse/misfortunecurse.yml b/eco-core/core-plugin/src/main/resources/enchants/curse/misfortunecurse.yml index 8b55ae26..309da602 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/curse/misfortunecurse.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/curse/misfortunecurse.yml @@ -3,7 +3,7 @@ # name: "Curse of Misfortune" -description: Chance for blocks to not drop items. +description: '&a%value%%&r chance for blocks to not drop items.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/arcanic.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/arcanic.yml index cb01d866..43c27217 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/arcanic.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/arcanic.yml @@ -3,7 +3,7 @@ # name: "Arcanic" -description: Chance to ignore potion damage. +description: '&a%value%%&r chance to ignore potion damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/beheading.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/beheading.yml index c3f9f226..ab5eb3ee 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/beheading.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/beheading.yml @@ -3,7 +3,7 @@ # name: "Beheading" -description: Chance of getting player or mob head. +description: '&a%value%%&r chance of getting player or mob head.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/bleed.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/bleed.yml index 18936b60..eb70c680 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/bleed.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/bleed.yml @@ -3,7 +3,7 @@ # name: "Bleed" -description: Causes your opponent to bleed, damaging them repeatedly. +description: '&a%value%%&r chance to cause your opponent to bleed, damaging them repeatedly.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/blind.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/blind.yml index 99ca0826..a655d1e4 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/blind.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/blind.yml @@ -3,7 +3,7 @@ # name: "Blind" -description: Chance of blinding your opponent. +description: '&a%value%%&r chance of blinding your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/blockbreather.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/blockbreather.yml index 0cc34e05..281f69cf 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/blockbreather.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/blockbreather.yml @@ -3,7 +3,7 @@ # name: "Block Breather" -description: Chance to ignore suffocation damage. +description: '&a%value%%&r chance to ignore suffocation damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/conclude.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/conclude.yml index 46ab1069..955bf35c 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/conclude.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/conclude.yml @@ -3,7 +3,7 @@ # name: "Conclude" -description: Chance to instantly kill entities on low health. +description: '&a%value%%&r chance to instantly kill entities on low health.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/disable.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/disable.yml index 6c6fcdfd..9bc4c703 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/disable.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/disable.yml @@ -3,7 +3,7 @@ # name: "Disable" -description: Chance of giving your opponent extreme mining fatigue. +description: '&a%value%%&r chance of giving your opponent extreme mining fatigue.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/dullness.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/dullness.yml index dec382cc..05d9c1e3 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/dullness.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/dullness.yml @@ -3,7 +3,7 @@ # name: "Dullness" -description: Chance of giving your opponent weakness. +description: '&a%value%%&r chance of giving your opponent weakness.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/economical.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/economical.yml index a31af1f2..c87e1038 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/economical.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/economical.yml @@ -3,7 +3,7 @@ # name: "Economical" -description: Chance to not consume fireworks while boosting. +description: '&a%value%%&r chance to not consume fireworks while boosting.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/electroshock.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/electroshock.yml index 2a806cd4..983de530 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/electroshock.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/electroshock.yml @@ -3,7 +3,7 @@ # name: "Electroshock" -description: Chance to strike lightning on your attacker. +description: '&a%value%%&r chance to strike lightning on your attacker.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/evasion.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/evasion.yml index d075757e..8dc75109 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/evasion.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/evasion.yml @@ -3,7 +3,7 @@ # name: "Evasion" -description: Chance to ignore incoming damage. +description: '&a%value%%&r chance to ignore incoming damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/extinguishing.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/extinguishing.yml index 811f5c12..3bb9f4f8 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/extinguishing.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/extinguishing.yml @@ -3,7 +3,7 @@ # name: "Extinguishing" -description: Chance to remove fire when taking fire damage. +description: '&a%value%%&r chance to remove fire when taking fire damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/famine.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/famine.yml index 913a108d..449e5a94 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/famine.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/famine.yml @@ -3,7 +3,7 @@ # name: "Famine" -description: Chance of giving your opponent hunger. +description: '&a%value%%&r chance of giving your opponent hunger.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/finality.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/finality.yml index 925027f7..26d97fb1 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/finality.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/finality.yml @@ -3,7 +3,7 @@ # name: "Finality" -description: Chance to instantly kill entities on low health. +description: '&a%value%%&r chance to instantly kill entities on low health.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/finishing.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/finishing.yml index ec2fb90c..72c6f709 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/finishing.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/finishing.yml @@ -3,7 +3,7 @@ # name: "Finishing" -description: Chance to instantly kill entities on low health. +description: '&a%value%%&r chance to instantly kill entities on low health.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/flinch.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/flinch.yml index 69d43bda..bce5255f 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/flinch.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/flinch.yml @@ -3,7 +3,7 @@ # name: "Flinch" -description: Chance to blind your attacker. +description: '&a%value%%&r chance to blind your attacker.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/freerunner.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/freerunner.yml index 4dd6bb08..1a9ce5d6 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/freerunner.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/freerunner.yml @@ -3,7 +3,7 @@ # name: "Freerunner" -description: Chance to ignore fall damage. +description: '&a%value%%&r chance to ignore fall damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/frozen.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/frozen.yml index 54f8b4dc..2f31dd9a 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/frozen.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/frozen.yml @@ -3,7 +3,7 @@ # name: "Frozen" -description: Chance to give your attacker slowness. +description: '&a%value%%&r chance to give your attacker slowness.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/fury.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/fury.yml index 1aaeedf9..c875c8d4 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/fury.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/fury.yml @@ -3,7 +3,7 @@ # name: "Fury" -description: Chance of angering nearby monsters towards your opponent. +description: '&a%value%%&r chance of angering nearby monsters towards your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/graceful.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/graceful.yml index 1ed69ede..d57db850 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/graceful.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/graceful.yml @@ -3,7 +3,7 @@ # name: "Graceful" -description: Chance of getting slow falling just above hitting the ground. +description: '&a%value%%&r chance of getting slow falling just above hitting the ground.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/iceshot.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/iceshot.yml index 1bc79ac4..0319debe 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/iceshot.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/iceshot.yml @@ -3,7 +3,7 @@ # name: "Ice Shot" -description: Chance of freezing your opponent. +description: '&a%value%%&r chance of freezing your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/identify.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/identify.yml index bbf745b5..e56bac82 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/identify.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/identify.yml @@ -3,7 +3,7 @@ # name: "Identify" -description: Chance to give your attacker glowing. +description: '&a%value%%&r chance to give your attacker glowing.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/ignite.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/ignite.yml index 9ae73a5c..0d736694 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/ignite.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/ignite.yml @@ -3,7 +3,7 @@ # name: "Ignite" -description: Chance to light hit block on fire. +description: '&a%value%%&r chance to light hit block on fire.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/illusionaspect.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/illusionaspect.yml index 59fffea8..f3bc0945 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/illusionaspect.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/illusionaspect.yml @@ -3,7 +3,7 @@ # name: "Illusion Aspect" -description: Chance to blind and nauseate opponent. +description: '&a%value%%&r chance to blind and nauseate opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/impact.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/impact.yml index 40906800..0c707f67 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/impact.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/impact.yml @@ -3,7 +3,7 @@ # name: "Impact" -description: Small chance to deal extreme damage. +description: '&a%value%%&r chance to deal extreme damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/infuriate.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/infuriate.yml index d4b9eb68..4d96e2bb 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/infuriate.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/infuriate.yml @@ -3,7 +3,7 @@ # name: "Infuriate" -description: Chance to cause nearby mobs to attack your opponent. +description: '&a%value%%&r chance to cause nearby mobs to attack your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/instantaneous.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/instantaneous.yml index 6e92c12b..a8a43f3c 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/instantaneous.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/instantaneous.yml @@ -3,7 +3,7 @@ # name: "Instantaneous" -description: Chance of instantly breaking blocks. +description: '&a%value%%&r chance to instantly break blocks.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/lesion.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/lesion.yml index 70bac27f..c3a48653 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/lesion.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/lesion.yml @@ -3,7 +3,7 @@ # name: "Lesion" -description: Causes your opponent to bleed, damaging them repeatedly. +description: '&a%value%%&r chance to your opponent to bleed, damaging them repeatedly.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/levitate.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/levitate.yml index 6f958f1b..d4c88335 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/levitate.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/levitate.yml @@ -3,7 +3,7 @@ # name: "Levitate" -description: Chance of applying levitation to your opponent. +description: '&a%value%%&r chance of applying levitation to your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/luckycatch.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/luckycatch.yml index 7b9a406b..5f9ba458 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/luckycatch.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/luckycatch.yml @@ -3,7 +3,7 @@ # name: "Lucky Catch" -description: Chance to double fishing drops. +description: '&a%value%%&r chance to double fishing drops.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/necrotic.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/necrotic.yml index c5caf698..f018c22d 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/necrotic.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/necrotic.yml @@ -3,7 +3,7 @@ # name: "Necrotic" -description: Wither skeletons have a higher chance to drop skulls. +description: Wither skeletons have a &a%value%%&r higher chance to drop skulls. enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/paralyze.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/paralyze.yml index 045f9a5a..dc6c7570 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/paralyze.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/paralyze.yml @@ -3,7 +3,7 @@ # name: "Paralyze" -description: Chance to give your attacker mining fatigue. +description: '&a%value%%&r chance to give your attacker mining fatigue.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/rage.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/rage.yml index 536cfa83..9f423e9d 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/rage.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/rage.yml @@ -3,7 +3,7 @@ # name: "Rage" -description: Chance of angering nearby monsters towards your opponent. +description: '&a%value%%&r chance of angering nearby monsters towards your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/reaper.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/reaper.yml index c5b3d927..69beb276 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/reaper.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/reaper.yml @@ -3,7 +3,7 @@ # name: "Reaper" -description: Chance to prevent your opponents soulbound from working. +description: '&a%value%%&r chance to prevent your opponents soulbound from working.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/sating.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/sating.yml index 5a770b47..104203af 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/sating.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/sating.yml @@ -3,7 +3,7 @@ # name: "Sating" -description: Reduces hunger loss. +description: Reduces hunger loss by &a%value%%&r. enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/sickening.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/sickening.yml index 0257c6a8..433b4415 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/sickening.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/sickening.yml @@ -3,7 +3,7 @@ # name: "Sickening" -description: Chance of nauseating your opponent. +description: '&a%value%%&r chance of nauseating your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/spearfishing.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/spearfishing.yml index a7bfdcc8..4d8db22f 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/spearfishing.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/spearfishing.yml @@ -3,7 +3,7 @@ # name: "Spearfishing" -description: Chance of dropping fish when tridenting water. +description: '&a%value%%&r chance of dropping fish when tridenting water.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/stalwart.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/stalwart.yml index 58e1b33e..b27af427 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/stalwart.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/stalwart.yml @@ -3,7 +3,7 @@ # name: "Stalwart" -description: Chance to get resistance for a short time when taking damage. +description: '&a%value%%&r chance to get resistance for a short time when taking damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/stamina.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/stamina.yml index d8582df4..74970e65 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/stamina.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/stamina.yml @@ -3,7 +3,7 @@ # name: "Stamina" -description: Decreases hunger loss while sprinting. +description: Decreases hunger loss by &a%value%%&r while sprinting. enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/stoneswitcher.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/stoneswitcher.yml index 2691ad1b..cf6d84db 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/stoneswitcher.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/stoneswitcher.yml @@ -3,7 +3,7 @@ # name: "Stone Switcher" -description: Breaking stone can drop as variants. +description: '&a%value%%&r for stone to drop as variants.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/strayaspect.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/strayaspect.yml index 5581ef67..e5340e3d 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/strayaspect.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/strayaspect.yml @@ -3,7 +3,7 @@ # name: "Stray Aspect" -description: Chance of slowing your opponent. +description: '&a%value%%&r chance of slowing your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/supercritical.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/supercritical.yml index e1b511ed..9c4ca84b 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/supercritical.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/supercritical.yml @@ -3,7 +3,7 @@ # name: "Supercritical" -description: Small chance to deal extreme damage. +description: '&a%value%%&r chance to deal extreme damage.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/thor.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/thor.yml index d3d81757..35d66a3c 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/thor.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/thor.yml @@ -3,7 +3,7 @@ # name: "Thor" -description: Chance of striking lightning on your opponent. +description: '&a%value%%&r chance of striking lightning on your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/toxic.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/toxic.yml index 4e26ec63..1f47f6a0 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/toxic.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/toxic.yml @@ -3,7 +3,7 @@ # name: "Toxic" -description: Chance to apply poison to your opponent. +description: '&a%value%%&r chance to apply poison to your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/transfuse.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/transfuse.yml index 7f40758c..d3e91aee 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/transfuse.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/transfuse.yml @@ -3,7 +3,7 @@ # name: "Transfuse" -description: Breaking stone can drop as random ore. +description: '&a%value%%&r chance for stone to drop as random ore.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/vampireaspect.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/vampireaspect.yml index 2ecbedc4..f7267610 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/vampireaspect.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/vampireaspect.yml @@ -3,7 +3,7 @@ # name: "Vampire Aspect" -description: Chance to apply wither to your opponent. +description: '&a%value%%&r chance to apply wither to your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/venom.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/venom.yml index 48b52851..2505e822 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/venom.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/venom.yml @@ -3,7 +3,7 @@ # name: "Venom" -description: Chance of withering your opponent. +description: '&a%value%%&r Chance of withering your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/woodswitcher.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/woodswitcher.yml index 28e291aa..219f7bc7 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/woodswitcher.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/woodswitcher.yml @@ -3,7 +3,7 @@ # name: "Wood Switcher" -description: Breaking logs can drop as other logs. +description: Breaking logs have a &a%value%%&r chance to drop as other logs. enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/wound.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/wound.yml index a52e0fc0..d8a71c37 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/wound.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/wound.yml @@ -3,7 +3,7 @@ # name: "Wound" -description: Causes your opponent to bleed, damaging them repeatedly. +description: '&a%value%%&r chance to cause your opponent to bleed, damaging them repeatedly.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/zeus.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/zeus.yml index dd381091..5ddc13de 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/zeus.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/zeus.yml @@ -3,7 +3,7 @@ # name: "Zeus" -description: Chance to strike lightning on your opponent. +description: '&a%value%%&r chance to strike lightning on your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/special/bolt.yml b/eco-core/core-plugin/src/main/resources/enchants/special/bolt.yml index 0448cd45..79cc191c 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/special/bolt.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/special/bolt.yml @@ -3,7 +3,7 @@ # name: "Bolt" -description: Chance of striking powerful lightning on your opponent. +description: '&a%value%%&r chance of striking powerful lightning on your opponent.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/special/confusion.yml b/eco-core/core-plugin/src/main/resources/enchants/special/confusion.yml index 88b156d3..17c3e554 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/special/confusion.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/special/confusion.yml @@ -3,7 +3,7 @@ # name: "Confusion" -description: Chance to shuffle your opponents hotbar. +description: '&a%value%%&r chance to shuffle your opponents hotbar.' enabled: true obtaining: diff --git a/eco-core/core-plugin/src/main/resources/enchants/special/volatile.yml b/eco-core/core-plugin/src/main/resources/enchants/special/volatile.yml index 951dd3c1..aecd8205 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/special/volatile.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/special/volatile.yml @@ -3,7 +3,7 @@ # name: "Volatile" -description: Explosive sword attacks. +description: '&a%value%%&r chance to have explosive sword attacks.' enabled: true obtaining: