diff --git a/pom.xml b/pom.xml index 9cb7306..bfb5730 100644 --- a/pom.xml +++ b/pom.xml @@ -11,8 +11,12 @@ + sonatype-oss-snapshots1 + https://s01.oss.sonatype.org/content/repositories/snapshots/ + + papermc - https://papermc.io/repo/repository/maven-public/ + https://repo.papermc.io/repository/maven-public/ brokkonaut @@ -34,9 +38,14 @@ + net.kyori + adventure-api + 4.17.0-SNAPSHOT + + io.papermc.paper paper-api - 1.20.2-R0.1-SNAPSHOT + 1.20.5-R0.1-SNAPSHOT provided @@ -110,10 +119,11 @@ + org.apache.maven.plugins maven-compiler-plugin - 3.11.0 + 3.13.0 - 17 + 21 diff --git a/src/main/java/de/fanta/challengesjoinentities/utils/ui/ItemUtil.java b/src/main/java/de/fanta/challengesjoinentities/utils/ui/ItemUtil.java index 2fb8c1f..ad938f8 100644 --- a/src/main/java/de/fanta/challengesjoinentities/utils/ui/ItemUtil.java +++ b/src/main/java/de/fanta/challengesjoinentities/utils/ui/ItemUtil.java @@ -16,7 +16,7 @@ public static ItemStack createGuiItem(Material material, String name, boolean glowing, String... lore) { ItemBuilder builder = ItemBuilder.fromMaterial(material).displayName(name).lore(lore); if (glowing) - builder.enchantment(Enchantment.DURABILITY, 1, true).flag(ItemFlag.HIDE_ENCHANTS); + builder.enchantment(Enchantment.UNBREAKING, 1, true).flag(ItemFlag.HIDE_ENCHANTS); return builder.build(); } }