diff --git a/MiniGamesBox API/build.gradle.kts b/MiniGamesBox API/build.gradle.kts index 8bd2213e..974faf68 100644 --- a/MiniGamesBox API/build.gradle.kts +++ b/MiniGamesBox API/build.gradle.kts @@ -25,7 +25,7 @@ plugins { dependencies { implementation("me.tigerhix.lib:scoreboard:1.4.4") { isTransitive = false } compileOnly(project(":MiniGamesBox-Database", "shadow")) - compileOnly("com.github.cryptomorin:XSeries:9.10.0") { isTransitive = false } + compileOnly("com.github.cryptomorin:XSeries:11.2.0") { isTransitive = false } } tasks{ diff --git a/MiniGamesBox Classic/build.gradle.kts b/MiniGamesBox Classic/build.gradle.kts index 94ff9dd5..9218aa36 100644 --- a/MiniGamesBox Classic/build.gradle.kts +++ b/MiniGamesBox Classic/build.gradle.kts @@ -24,7 +24,7 @@ plugins { dependencies { implementation("me.tigerhix.lib:scoreboard:1.4.4") { isTransitive = false } - implementation("com.github.cryptomorin:XSeries:9.10.0") { isTransitive = false } + implementation("com.github.cryptomorin:XSeries:11.2.0") { isTransitive = false } implementation(project(":MiniGamesBox-API", "shadow")) implementation(project(":MiniGamesBox-Inventory", "shadow")) implementation(project(":MiniGamesBox-Database", "shadow")) diff --git a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/AddonItem.java b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/AddonItem.java index e0e4746e..d813201b 100644 --- a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/AddonItem.java +++ b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/AddonItem.java @@ -51,7 +51,7 @@ public ItemStack getItem() { .lore(ChatColor.GOLD + "Custom Kits, Custom Achievements, Custom ranks, Replay Ability and more!") .lore("&aControls") .lore("&eCLICK \n&7-> Link for patreon program") - .enchantment(XEnchantment.DURABILITY.getEnchant()) + .enchantment(XEnchantment.UNBREAKING.getEnchant()) .colorizeItem(); return item.build(); } diff --git a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/PatreonItem.java b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/PatreonItem.java index 6323dbee..3506c1ce 100644 --- a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/PatreonItem.java +++ b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/handlers/setup/items/template/PatreonItem.java @@ -52,7 +52,7 @@ public ItemStack getItem() { .lore(ChatColor.GRAY + "support us by donating on other platforms such as paypal!") .lore("&aControls") .lore("&eCLICK \n&7-> Link for donation options") - .enchantment(XEnchantment.DURABILITY.getEnchant()) + .enchantment(XEnchantment.UNBREAKING.getEnchant()) .colorizeItem(); return item.build(); } diff --git a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/version/VersionUtils.java b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/version/VersionUtils.java index 95ed4b1b..3cde8b8f 100644 --- a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/version/VersionUtils.java +++ b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/version/VersionUtils.java @@ -196,10 +196,10 @@ public static CompletableFuture teleport(Entity entity, Location locati public static void sendParticles(String particleName, Player player, Location location, int count) { if(!isPaper && ServerVersion.Version.isCurrentEqualOrHigher(ServerVersion.Version.v1_9_R1)) { - Particle particle = XParticle.getParticle(particleName); + Particle particle = XParticle.of(particleName).orElse(XParticle.ANGRY_VILLAGER).get(); location.getWorld().spawnParticle(particle, location, count, 0, 0, 0, 0, getParticleDataType(particle, location)); } else if(isParticleBuilderSupported) { - Particle particle = XParticle.getParticle(particleName); + Particle particle = XParticle.of(particleName).orElse(XParticle.ANGRY_VILLAGER).get(); Object dataType = getParticleDataType(particle, location); if(dataType == null) { @@ -217,10 +217,10 @@ public static void sendParticles(String particleName, Player player, Location lo public static void sendParticles(String particleName, Set players, Location location, int count) { if(!isPaper && ServerVersion.Version.isCurrentEqualOrHigher(ServerVersion.Version.v1_9_R1)) { - Particle particle = XParticle.getParticle(particleName); + Particle particle = XParticle.of(particleName).orElse(XParticle.ANGRY_VILLAGER).get(); location.getWorld().spawnParticle(particle, location, count, 0, 0, 0, 0, getParticleDataType(particle, location)); } else if(isParticleBuilderSupported) { - Particle particle = XParticle.getParticle(particleName); + Particle particle = XParticle.of(particleName).orElse(XParticle.ANGRY_VILLAGER).get(); Object dataType = getParticleDataType(particle, location); if(dataType == null) { @@ -242,7 +242,7 @@ public static void sendParticles(String particle, Set players, Location public static void sendParticles(String particleName, Set players, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) { if(!isPaper && ServerVersion.Version.isCurrentEqualOrHigher(ServerVersion.Version.v1_9_R1)) { - Particle particle = XParticle.getParticle(particleName); + Particle particle = XParticle.of(particleName).orElse(XParticle.ANGRY_VILLAGER).get(); Object dataType = getParticleDataType(particle, location); if(dataType != null) { @@ -251,7 +251,7 @@ public static void sendParticles(String particleName, Set players, Locat location.getWorld().spawnParticle(particle, location, count, 0, 0, 0, extra); } } else if(isParticleBuilderSupported) { - Particle particle = XParticle.getParticle(particleName); + Particle particle = XParticle.of(particleName).orElse(XParticle.ANGRY_VILLAGER).get(); Object dataType = getParticleDataType(particle, location); if(dataType == null) {