Refactor to simplify API usage and improve compatibility by replacing legacy methods and adapting to updated libraries.

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2026-05-16 14:08:28 +02:00
parent 2d679028c0
commit 136b0f5b97
8 changed files with 25 additions and 24 deletions
@@ -39,10 +39,10 @@ public class MWTeam {
static {
ItemMeta bowMeta = Objects.requireNonNull(bow.getItemMeta());
bowMeta.addEnchant(Enchantment.ARROW_FIRE, 1, true);
bowMeta.addEnchant(Enchantment.ARROW_KNOCKBACK, 1, true);
bowMeta.addEnchant(Enchantment.FLAME, 1, true);
bowMeta.addEnchant(Enchantment.PUNCH, 1, true);
bowMeta.addEnchant(Enchantment.KNOCKBACK, 1, true);
bowMeta.addEnchant(Enchantment.DAMAGE_ALL, 2, true);
bowMeta.addEnchant(Enchantment.POWER, 2, true);
bowMeta.setUnbreakable(true);
bow.setItemMeta(bowMeta);
}