add excellent enchant limit

This commit is contained in:
alexcrea 2026-03-23 23:54:38 +01:00
parent 8ded2ae9c6
commit f3c6526967
Signed by: alexcrea
GPG key ID: E346CD16413450E3
8 changed files with 56 additions and 16 deletions

View file

@ -11,11 +11,7 @@ repositories {
}
dependencies {
// Spigot api
compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT")
// Excellent Enchant
compileOnly("su.nightexpress.excellentenchants:Core:5.3.0") {
exclude("org.spigotmc")
}
compileOnly("su.nightexpress.excellentenchants:Core:5.4.1")
compileOnly("su.nightexpress.nightcore:main:2.14.1")
}

View file

@ -0,0 +1,12 @@
package xyz.alexcrea.cuanvil.dependency.plugins;
import su.nightexpress.excellentenchants.EnchantsAPI;
public class ExcellentEnchant5_4EnchantSettings {
public static int anvilLimit() {
return EnchantsAPI.getEnchantManager().getSettings().getAnvilEnchantsLimit();
}
}