use a IF version compatible with folia and allow gui to run on it

This commit is contained in:
alexcrea 2024-10-06 03:55:24 +02:00
parent 7029254526
commit c057a9302f
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
3 changed files with 2 additions and 9 deletions

View file

@ -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"))

BIN
libs/IF-0.10.17-folia.jar Normal file

Binary file not shown.

View file

@ -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)