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

@ -0,0 +1,17 @@
group = rootProject.group
version = rootProject.version
plugins {
kotlin("jvm") version "2.1.0"
}
repositories {
// ExcellentEnchants
maven(url = "https://repo.nightexpressdev.com/releases")
}
dependencies {
// Excellent Enchant
compileOnly("su.nightexpress.excellentenchants:Core:5.4.1")
compileOnly("su.nightexpress.nightcore:main:2.14.1")
}

View file

@ -0,0 +1,16 @@
package xyz.alexcrea.cuanvil.dependency.plugins;
import org.jetbrains.annotations.NotNull;
import su.nightexpress.excellentenchants.api.enchantment.CustomEnchantment;
import su.nightexpress.excellentenchants.enchantment.EnchantRegistry;
import java.util.Set;
public class ExcellentEnchant5_3Registry {
public static @NotNull Set<CustomEnchantment> getRegistered(){
return EnchantRegistry.getRegistered();
}
}

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();
}
}