9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2026-01-03 14:12:24 +00:00
This commit is contained in:
XiaoMoMi
2024-10-07 01:28:26 +08:00
parent 4b2ddf6cd1
commit 2ba7ad95ba
15 changed files with 561 additions and 49 deletions

View File

@@ -46,7 +46,7 @@ dependencies {
tasks {
shadowJar {
archiveFileName = "CustomNameplates-bukkit-${rootProject.properties["project_version"]}.jar"
archiveFileName = "CustomNameplates-Bukkit-${rootProject.properties["project_version"]}.jar"
destinationDirectory.set(file("$rootDir/target"))
relocate("net.kyori", "net.momirealms.customnameplates.libraries")
relocate("org.incendo", "net.momirealms.customnameplates.libraries")
@@ -62,7 +62,6 @@ tasks {
relocate("com.github.benmanes.caffeine", "net.momirealms.customnameplates.libraries.caffeine")
relocate("net.objecthunter.exp4j", "net.momirealms.customnameplates.libraries.exp4j")
relocate("redis.clients.jedis", "net.momirealms.customnameplates.libraries.jedis")
relocate("org.apache.commons.io", "net.momirealms.customnameplates.libraries.commons.io")
}
}

View File

@@ -35,6 +35,7 @@ import net.momirealms.customnameplates.backend.placeholder.PlaceholderManagerImp
import net.momirealms.customnameplates.backend.storage.StorageManagerImpl;
import net.momirealms.customnameplates.bukkit.command.BukkitCommandManager;
import net.momirealms.customnameplates.bukkit.compatibility.NameplatesExpansion;
import net.momirealms.customnameplates.bukkit.compatibility.cosmetic.MagicCosmeticsHook;
import net.momirealms.customnameplates.bukkit.requirement.BukkitRequirementManager;
import net.momirealms.customnameplates.bukkit.scheduler.BukkitSchedulerAdapter;
import net.momirealms.customnameplates.common.dependency.Dependency;
@@ -116,7 +117,8 @@ public class BukkitCustomNameplates extends CustomNameplates implements Listener
Dependency.MONGODB_DRIVER_CORE, Dependency.MONGODB_DRIVER_SYNC, Dependency.MONGODB_DRIVER_BSON,
Dependency.HIKARI_CP,
Dependency.BYTE_BUDDY,
Dependency.COMMONS_IO
Dependency.COMMONS_IO,
Dependency.LWJGL, Dependency.LWJGL_NATIVES, Dependency.LWJGL_FREETYPE, Dependency.LWJGL_FREETYPE_NATIVES
)
);
}
@@ -173,6 +175,12 @@ public class BukkitCustomNameplates extends CustomNameplates implements Listener
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
new NameplatesExpansion(this).register();
}
if (Bukkit.getPluginManager().isPluginEnabled("MagicCosmetics")) {
try {
Bukkit.getPluginManager().registerEvents(new MagicCosmeticsHook(this), this.getBootstrap());
} catch (Exception ignore) {
}
}
boolean downloadFromPolymart = polymart.equals("1");
boolean downloadFromBBB = buildByBit.equals("true");