diff --git a/build.gradle.kts b/build.gradle.kts index 28cb586..671f834 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,7 +27,8 @@ dependencies { compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT") // Gui library - implementation("com.github.stefvanschie.inventoryframework:IF:0.10.14") + //implementation("com.github.stefvanschie.inventoryframework:IF:0.10.14") // we can't use the maven artefact currently as it do not support folia + implementation(files("libs/IF-0.10.17-folia.jar")) // EnchantsSquaredRewritten compileOnly(files("libs/EnchantsSquared.jar")) diff --git a/libs/IF-0.10.17-folia.jar b/libs/IF-0.10.17-folia.jar new file mode 100644 index 0000000..c28665e Binary files /dev/null and b/libs/IF-0.10.17-folia.jar differ diff --git a/src/main/kotlin/xyz/alexcrea/cuanvil/command/EditConfigExecutor.kt b/src/main/kotlin/xyz/alexcrea/cuanvil/command/EditConfigExecutor.kt index 85761d9..732a4a6 100644 --- a/src/main/kotlin/xyz/alexcrea/cuanvil/command/EditConfigExecutor.kt +++ b/src/main/kotlin/xyz/alexcrea/cuanvil/command/EditConfigExecutor.kt @@ -16,14 +16,6 @@ class EditConfigExecutor : CommandExecutor { sender.sendMessage(GuiGlobalActions.NO_EDIT_PERM) return false } - if(DependencyManager.isFolia){ - sender.sendMessage("§cIt look like you are using Folia. Sadly Custom Anvil do not support Config gui for Folia.") - sender.sendMessage("§eIt is may come in a future version.") - sender.sendMessage("") - sender.sendMessage("§eCurrently you need to edit manually the config or copy from another server (spigot or better)") - sender.sendMessage("§eThen /anvilconfigreload after config file is edited") - return false - } if (sender !is HumanEntity) return false MainConfigGui.getInstance().show(sender)