9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2026-01-03 22:16:44 +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

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