9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 11:29:18 +00:00

feat: move ModelEngine integration to hook system

This commit is contained in:
LoJoSho
2023-07-19 09:54:10 -05:00
parent afb20ea0bb
commit c06a4fcede
5 changed files with 16 additions and 12 deletions

View File

@@ -50,7 +50,6 @@ public final class HMCCosmeticsPlugin extends JavaPlugin {
private static boolean disable = false;
private static YamlConfigurationLoader configLoader;
private static final int pluginId = 13873;
private static boolean hasModelEngine = false;
private static boolean onLatestVersion = true;
private static String latestVersion = "";
@@ -128,11 +127,6 @@ public final class HMCCosmeticsPlugin extends JavaPlugin {
// Database
new Database();
// ModelEngine
if (Bukkit.getPluginManager().getPlugin("ModelEngine") != null) {
hasModelEngine = true;
}
// WorldGuard
if (Bukkit.getPluginManager().getPlugin("WorldGuard") != null && Settings.isWorldGuardMoveCheckEnabled()) {
getServer().getPluginManager().registerEvents(new WGListener(), this);
@@ -286,9 +280,6 @@ public final class HMCCosmeticsPlugin extends JavaPlugin {
}
}
public static boolean hasModelEngine() {
return hasModelEngine;
}
public static boolean isOnLatestVersion() {
return onLatestVersion;
}