mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
use a IF version compatible with folia and allow gui to run on it
This commit is contained in:
parent
7029254526
commit
c057a9302f
3 changed files with 2 additions and 9 deletions
|
|
@ -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
BIN
libs/IF-0.10.17-folia.jar
Normal file
Binary file not shown.
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue