From e68d482aa54aec7970e3f02e158664966fccbcf0 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 2 Jan 2022 17:37:19 +0000 Subject: [PATCH 01/14] Disabled CrashClaim --- .../kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt index 774510e8..482a195d 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt @@ -174,7 +174,7 @@ abstract class EcoSpigotPlugin : EcoPlugin( IntegrationLoader("Towny") { AntigriefManager.register(AntigriefTowny()) }, IntegrationLoader("Lands") { AntigriefManager.register(AntigriefLands(this)) }, IntegrationLoader("Kingdoms") { AntigriefManager.register(AntigriefKingdoms()) }, - IntegrationLoader("CrashClaim") { AntigriefManager.register(AntigriefCrashClaim()) }, + //IntegrationLoader("CrashClaim") { AntigriefManager.register(AntigriefCrashClaim()) }, IntegrationLoader("CombatLogX") { val pluginManager = Bukkit.getPluginManager() val combatLogXPlugin = pluginManager.getPlugin("CombatLogX") ?: return@IntegrationLoader From e7e1751acca4b8fffaaa0f8654abb36684fad430 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 2 Jan 2022 17:37:24 +0000 Subject: [PATCH 02/14] Disabled CrashClaim --- .../kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt index 482a195d..2b4b98e7 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt @@ -55,7 +55,6 @@ import com.willfp.eco.internal.spigot.integrations.anticheat.AnticheatVulcan import com.willfp.eco.internal.spigot.integrations.antigrief.AntigriefBentoBox import com.willfp.eco.internal.spigot.integrations.antigrief.AntigriefCombatLogXV10 import com.willfp.eco.internal.spigot.integrations.antigrief.AntigriefCombatLogXV11 -import com.willfp.eco.internal.spigot.integrations.antigrief.AntigriefCrashClaim import com.willfp.eco.internal.spigot.integrations.antigrief.AntigriefDeluxeCombat import com.willfp.eco.internal.spigot.integrations.antigrief.AntigriefFactionsUUID import com.willfp.eco.internal.spigot.integrations.antigrief.AntigriefGriefPrevention From b4f3988fc73ebc15090c800b50bbb5a91de6fa77 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 2 Jan 2022 17:37:34 +0000 Subject: [PATCH 03/14] Updated to 6.17.7 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 8fe9b813..af016d88 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version = 6.17.6 +version = 6.17.7 plugin-name = eco kotlin.code.style = official \ No newline at end of file From 863818d2eb5e219694f5c92ef9e645d09ea83e36 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 7 Jan 2022 10:05:00 +0000 Subject: [PATCH 04/14] Fixed NoAI arg parser --- .../com/willfp/eco/internal/entities/EntityArgParserNoAI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/entities/EntityArgParserNoAI.kt b/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/entities/EntityArgParserNoAI.kt index b8999480..cb2eaa17 100644 --- a/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/entities/EntityArgParserNoAI.kt +++ b/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/entities/EntityArgParserNoAI.kt @@ -9,7 +9,7 @@ class EntityArgParserNoAI : EntityArgParser { var noAI = false for (arg in args) { - if (arg.equals("unbreakable", true)) { + if (arg.equals("no-ai", true)) { noAI = true } } From 1e23cbaa5e6058a0bccc0943fa6519ee36d8bf2f Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 7 Jan 2022 10:38:09 +0000 Subject: [PATCH 05/14] Fixed SuperiorSkyblockAPI build isseus --- eco-core/core-plugin/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/build.gradle b/eco-core/core-plugin/build.gradle index e226aed1..5d1bb39d 100644 --- a/eco-core/core-plugin/build.gradle +++ b/eco-core/core-plugin/build.gradle @@ -35,7 +35,7 @@ dependencies { compileOnly 'com.zaxxer:HikariCP:5.0.0' compileOnly 'com.gmail.filoghost.holographicdisplays:holographicdisplays-api:2.4.0' compileOnly 'com.github.EssentialsX:Essentials:2.19.0' - compileOnly 'com.bgsoftware:SuperiorSkyblockAPI:latest' + compileOnly 'com.bgsoftware:SuperiorSkyblockAPI:1.8.3' compileOnly 'com.github.MilkBowl:VaultAPI:1.7' compileOnly 'world.bentobox:bentobox:1.17.3-SNAPSHOT' compileOnly 'com.google.guava:guava:31.0.1-jre' From f4907329d9581fb5e6420946dc570481ad47431e Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 7 Jan 2022 10:38:41 +0000 Subject: [PATCH 06/14] Updated to 6.18.2 --- .../java/com/willfp/eco/core/items/args/ColorArgParser.java | 2 +- .../willfp/eco/core/items/args/CustomModelDataArgParser.java | 2 +- .../com/willfp/eco/core/items/args/EnchantmentArgParser.java | 2 +- .../java/com/willfp/eco/core/items/args/TextureArgParser.java | 2 +- gradle.properties | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java index 5c77013c..81e1a082 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java @@ -15,7 +15,7 @@ import java.util.function.Predicate; * @deprecated Moved to internals. */ @Deprecated(since = "6.16.0", forRemoval = true) -@ApiStatus.ScheduledForRemoval(inVersion = "6.18.1") +@ApiStatus.ScheduledForRemoval(inVersion = "6.18.2") public class ColorArgParser implements LookupArgParser { /** * Instantiate arg parser. diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java index 68dc21d8..615f9169 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java @@ -15,7 +15,7 @@ import java.util.function.Predicate; * @deprecated Moved to internals. */ @Deprecated(since = "6.16.0", forRemoval = true) -@ApiStatus.ScheduledForRemoval(inVersion = "6.18.1") +@ApiStatus.ScheduledForRemoval(inVersion = "6.18.2") public class CustomModelDataArgParser implements LookupArgParser { /** * Instantiate arg parser. diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java index c8c2c2f7..2d3fb984 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java @@ -15,7 +15,7 @@ import java.util.function.Predicate; * @deprecated Moved to internals. */ @Deprecated(since = "6.16.0", forRemoval = true) -@ApiStatus.ScheduledForRemoval(inVersion = "6.18.1") +@ApiStatus.ScheduledForRemoval(inVersion = "6.18.2") public class EnchantmentArgParser implements LookupArgParser { /** * Instantiate arg parser. diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java index b3893d42..552f91fc 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java @@ -15,7 +15,7 @@ import java.util.function.Predicate; * @deprecated Moved to internals. */ @Deprecated(since = "6.16.0", forRemoval = true) -@ApiStatus.ScheduledForRemoval(inVersion = "6.18.1") +@ApiStatus.ScheduledForRemoval(inVersion = "6.18.2") public class TextureArgParser implements LookupArgParser { /** * Instantiate arg parser. diff --git a/gradle.properties b/gradle.properties index 1db9e709..f4378008 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version = 6.18.0 +version = 6.18.1 plugin-name = eco kotlin.code.style = official \ No newline at end of file From 7b1179f4022f61e56ad487017aa32790db002ecb Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 9 Jan 2022 18:18:44 +0000 Subject: [PATCH 07/14] Fixed string getter for multiple-in-craft --- .../willfp/eco/core/recipe/recipes/ShapedCraftingRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/recipe/recipes/ShapedCraftingRecipe.java b/eco-api/src/main/java/com/willfp/eco/core/recipe/recipes/ShapedCraftingRecipe.java index 6c289e59..40ba656a 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/recipe/recipes/ShapedCraftingRecipe.java +++ b/eco-api/src/main/java/com/willfp/eco/core/recipe/recipes/ShapedCraftingRecipe.java @@ -111,7 +111,7 @@ public final class ShapedCraftingRecipe extends PluginDependent imple List lore = meta.hasLore() ? meta.getLore() : new ArrayList<>(); assert lore != null; lore.add(""); - String add = Eco.getHandler().getEcoPlugin().getLangYml().getString("multiple-in-craft"); + String add = Eco.getHandler().getEcoPlugin().getLangYml().getFormattedString("multiple-in-craft"); add = add.replace("%amount%", String.valueOf(item.getAmount())); lore.add(add); meta.setLore(lore); From 56c124dbd2b8c88a431f2c933c3233b6095a44cc Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 9 Jan 2022 18:19:29 +0000 Subject: [PATCH 08/14] Updated to 6.18.2 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index f4378008..74dbd671 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version = 6.18.1 +version = 6.18.2 plugin-name = eco kotlin.code.style = official \ No newline at end of file From 3728f2fc7a06d43fb09ee6906d5ff22aa29449eb Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 10 Jan 2022 11:11:31 +0000 Subject: [PATCH 09/14] Fixed apache commons lang not existing on classpath --- eco-api/build.gradle | 1 + eco-core/core-plugin/src/main/resources/plugin.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/eco-api/build.gradle b/eco-api/build.gradle index 30358831..6cf7e918 100644 --- a/eco-api/build.gradle +++ b/eco-api/build.gradle @@ -15,6 +15,7 @@ dependencies { compileOnly 'org.apache.maven:maven-artifact:3.8.1' compileOnly 'com.comphenix.protocol:ProtocolLib:4.6.1-SNAPSHOT' compileOnly 'com.google.code.gson:gson:2.8.8' + compileOnly 'org.apache.commons:commons-lang3:3.0' } java { diff --git a/eco-core/core-plugin/src/main/resources/plugin.yml b/eco-core/core-plugin/src/main/resources/plugin.yml index fcb00ca9..a39b59c4 100644 --- a/eco-core/core-plugin/src/main/resources/plugin.yml +++ b/eco-core/core-plugin/src/main/resources/plugin.yml @@ -53,4 +53,5 @@ libraries: - 'org.jetbrains.exposed:exposed-jdbc:0.36.2' - 'mysql:mysql-connector-java:8.0.25' - 'com.google.guava:guava:31.0.1-jre' - - 'com.zaxxer:HikariCP:5.0.0' \ No newline at end of file + - 'com.zaxxer:HikariCP:5.0.0' + - 'org.apache.commons:commons-lang3:3.0' \ No newline at end of file From ecafbd76de74fd7823b9bd8758b0a30067d86f78 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 10 Jan 2022 11:11:44 +0000 Subject: [PATCH 10/14] Updated to 6.18.3 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 74dbd671..3704dbb8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version = 6.18.2 +version = 6.18.3 plugin-name = eco kotlin.code.style = official \ No newline at end of file From 19e3061a13cab8c63e7401cc81d76d2f9b37f3e0 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 11 Jan 2022 09:20:43 +0000 Subject: [PATCH 11/14] Fixed MythicMobs NPE --- .../integrations/customentities/CustomEntitiesMythicMobs.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/customentities/CustomEntitiesMythicMobs.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/customentities/CustomEntitiesMythicMobs.kt index e61c6ec5..3a99446c 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/customentities/CustomEntitiesMythicMobs.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/customentities/CustomEntitiesMythicMobs.kt @@ -2,8 +2,8 @@ package com.willfp.eco.internal.spigot.integrations.customentities import com.willfp.eco.core.entities.CustomEntity import com.willfp.eco.core.integrations.customentities.CustomEntitiesWrapper -import com.willfp.eco.util.NamespacedKeyUtils import io.lumine.xikage.mythicmobs.MythicMobs +import org.bukkit.NamespacedKey class CustomEntitiesMythicMobs : CustomEntitiesWrapper { override fun registerAllEntities() { @@ -11,7 +11,8 @@ class CustomEntitiesMythicMobs : CustomEntitiesWrapper { val api = MythicMobs.inst().apiHelper for (id in mobManager.mobNames) { - val key = NamespacedKeyUtils.create("mythicmobs", id.lowercase()) + val key = NamespacedKey.fromString("mythicmobs:${id.lowercase()}") + key ?: continue CustomEntity( key, { From 1dc0fa449b8f28b3cc71c242b911fdd596c709d1 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 11 Jan 2022 09:20:52 +0000 Subject: [PATCH 12/14] Updated to 6.18.4 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 3704dbb8..9233e599 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version = 6.18.3 +version = 6.18.4 plugin-name = eco kotlin.code.style = official \ No newline at end of file From aa718649eb0e435345795aa64e6e2db34abd4a80 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 11 Jan 2022 10:01:40 +0000 Subject: [PATCH 13/14] Fixed v1_18_R1 remapping bugs --- .../proxy/v1_18_R1/fast/NMSFastItemStack.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/eco-core/core-nms/v1_18_R1/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_18_R1/fast/NMSFastItemStack.kt b/eco-core/core-nms/v1_18_R1/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_18_R1/fast/NMSFastItemStack.kt index d9285a26..c3a80366 100644 --- a/eco-core/core-nms/v1_18_R1/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_18_R1/fast/NMSFastItemStack.kt +++ b/eco-core/core-nms/v1_18_R1/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_18_R1/fast/NMSFastItemStack.kt @@ -24,9 +24,9 @@ class NMSFastItemStack(itemStack: org.bukkit.inventory.ItemStack) : EcoFastItemS override fun getEnchantmentsOnItem(checkStored: Boolean): Map { val enchantmentNBT = - if (checkStored && handle.item === Items.ENCHANTED_BOOK) EnchantedBookItem.getEnchantments( + if (checkStored && handle.getItem() === Items.ENCHANTED_BOOK) EnchantedBookItem.getEnchantments( handle - ) else handle.enchantmentTags + ) else handle.getEnchantmentTags() val foundEnchantments: MutableMap = HashMap() for (base in enchantmentNBT) { val compound = base as CompoundTag @@ -45,9 +45,9 @@ class NMSFastItemStack(itemStack: org.bukkit.inventory.ItemStack) : EcoFastItemS checkStored: Boolean ): Int { val enchantmentNBT = - if (checkStored && handle.item === Items.ENCHANTED_BOOK) EnchantedBookItem.getEnchantments( + if (checkStored && handle.getItem() === Items.ENCHANTED_BOOK) EnchantedBookItem.getEnchantments( handle - ) else handle.enchantmentTags + ) else handle.getEnchantmentTags() for (base in enchantmentNBT) { val compound = base as CompoundTag val key = compound.getString("id") @@ -152,16 +152,16 @@ class NMSFastItemStack(itemStack: org.bukkit.inventory.ItemStack) : EcoFastItemS private var flagBits: Int get() = - if (handle.hasTag() && handle.tag!!.contains( + if (handle.hasTag() && handle.getTag()!!.contains( "HideFlags", 99 ) - ) handle.tag!!.getInt("HideFlags") else 0 + ) handle.getTag()!!.getInt("HideFlags") else 0 set(value) = - handle.orCreateTag.putInt("HideFlags", value) + handle.getOrCreateTag().putInt("HideFlags", value) override fun getRepairCost(): Int { - return handle.baseRepairCost + return handle.getBaseRepairCost() } override fun setRepairCost(cost: Int) { @@ -177,7 +177,7 @@ class NMSFastItemStack(itemStack: org.bukkit.inventory.ItemStack) : EcoFastItemS } override fun hashCode(): Int { - return handle.tag?.hashCode() ?: (0b00010101 * 31 + Item.getId(handle.getItem())) + return handle.getTag()?.hashCode() ?: (0b00010101 * 31 + Item.getId(handle.getItem())) } private fun apply() { From 8635e5f7a58688e3eda8f587ab4ad986d66edeaf Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 11 Jan 2022 10:01:49 +0000 Subject: [PATCH 14/14] Updated to 6.18.5 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 9233e599..92a1b9c8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version = 6.18.4 +version = 6.18.5 plugin-name = eco kotlin.code.style = official \ No newline at end of file