mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-25 18:09:28 +00:00
[Relocate] Relocated Adventure and some libs
This commit is contained in:
@@ -61,11 +61,12 @@ public class CustomCropsPluginImpl extends CustomCropsPlugin {
|
||||
Dependency.GSON,
|
||||
Dependency.SLF4J_API,
|
||||
Dependency.SLF4J_SIMPLE,
|
||||
Dependency.ADVENTURE_API,
|
||||
Dependency.COMMAND_API,
|
||||
Dependency.NBT_API,
|
||||
Dependency.BOOSTED_YAML,
|
||||
Dependency.ADVENTURE_TEXT_MINIMESSAGE,
|
||||
Dependency.ADVENTURE_LEGACY_SERIALIZER,
|
||||
Dependency.BIOME_API,
|
||||
Dependency.ANTI_GRIEF,
|
||||
Dependency.BSTATS_BASE,
|
||||
Dependency.BSTATS_BUKKIT
|
||||
)
|
||||
@@ -112,16 +113,16 @@ public class CustomCropsPluginImpl extends CustomCropsPlugin {
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
this.commandManager.disable();
|
||||
this.adventure.disable();
|
||||
this.requirementManager.disable();
|
||||
this.actionManager.disable();
|
||||
this.worldManager.disable();
|
||||
this.itemManager.disable();
|
||||
this.conditionManager.disable();
|
||||
this.coolDownManager.disable();
|
||||
this.placeholderManager.disable();
|
||||
((SchedulerImpl) scheduler).shutdown();
|
||||
if (this.commandManager != null) this.commandManager.disable();
|
||||
if (this.adventure != null) this.adventure.disable();
|
||||
if (this.requirementManager != null) this.requirementManager.disable();
|
||||
if (this.actionManager != null) this.actionManager.disable();
|
||||
if (this.worldManager != null) this.worldManager.disable();
|
||||
if (this.itemManager != null) this.itemManager.disable();
|
||||
if (this.conditionManager != null) this.conditionManager.disable();
|
||||
if (this.coolDownManager != null) this.coolDownManager.disable();
|
||||
if (this.placeholderManager != null) this.placeholderManager.disable();
|
||||
if (this.scheduler != null) ((SchedulerImpl) scheduler).shutdown();
|
||||
instance = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,94 +60,7 @@ public enum Dependency {
|
||||
null,
|
||||
"jar-relocator"
|
||||
),
|
||||
ADVENTURE_API(
|
||||
"net{}kyori",
|
||||
"adventure-api",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-api",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_KEY(
|
||||
"net{}kyori",
|
||||
"adventure-key",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-key",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_NBT(
|
||||
"net{}kyori",
|
||||
"adventure-nbt",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-nbt",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_LEGACY_SERIALIZER(
|
||||
"net{}kyori",
|
||||
"adventure-text-serializer-legacy",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-text-serializer-legacy",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_TEXT_LOGGER(
|
||||
"net{}kyori",
|
||||
"adventure-text-logger-slf4j",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-text-logger-slf4j",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_GSON(
|
||||
"net{}kyori",
|
||||
"adventure-text-serializer-gson",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-text-serializer-gson",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_GSON_LEGACY(
|
||||
"net{}kyori",
|
||||
"adventure-text-serializer-gson-legacy-impl",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-text-serializer-gson-legacy-impl",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_PLATFORM(
|
||||
"net{}kyori",
|
||||
"adventure-platform-api",
|
||||
"4.3.2",
|
||||
null,
|
||||
"adventure-platform-api",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_PLATFORM_BUKKIT(
|
||||
"net{}kyori",
|
||||
"adventure-platform-bukkit",
|
||||
"4.3.2",
|
||||
null,
|
||||
"adventure-platform-bukkit",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_PLATFORM_FACET(
|
||||
"net{}kyori",
|
||||
"adventure-platform-facet",
|
||||
"4.3.2",
|
||||
null,
|
||||
"adventure-platform-facet",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
ADVENTURE_TEXT_MINIMESSAGE(
|
||||
"net{}kyori",
|
||||
"adventure-text-minimessage",
|
||||
"4.16.0",
|
||||
null,
|
||||
"adventure-text-minimessage",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||
),
|
||||
|
||||
COMMAND_API(
|
||||
"dev{}jorel",
|
||||
"commandapi-bukkit-shade",
|
||||
@@ -164,6 +77,16 @@ public enum Dependency {
|
||||
"boosted-yaml",
|
||||
Relocation.of("boostedyaml", "dev{}dejvokep{}boostedyaml")
|
||||
),
|
||||
ADVENTURE_API(
|
||||
"com.github.Xiao-MoMi",
|
||||
"Adventure-Bundle",
|
||||
"4.16.0",
|
||||
"jitpack",
|
||||
"adventure-bundle",
|
||||
Relocation.of("adventure", "net{}kyori{}adventure"),
|
||||
Relocation.of("option", "net{}kyori{}option"),
|
||||
Relocation.of("examination", "net{}kyori{}examination")
|
||||
),
|
||||
H2_DRIVER(
|
||||
"com.h2database",
|
||||
"h2",
|
||||
@@ -203,7 +126,7 @@ public enum Dependency {
|
||||
ANTI_GRIEF(
|
||||
"com{}github{}Xiao-MoMi",
|
||||
"AntiGriefLib",
|
||||
"0.7",
|
||||
"0.11",
|
||||
"jitpack",
|
||||
"antigrief-lib",
|
||||
Relocation.of("antigrieflib", "net{}momirealms{}antigrieflib")
|
||||
@@ -211,7 +134,7 @@ public enum Dependency {
|
||||
BIOME_API(
|
||||
"com{}github{}Xiao-MoMi",
|
||||
"BiomeAPI",
|
||||
"0.2",
|
||||
"0.3",
|
||||
"jitpack",
|
||||
"biome-api",
|
||||
Relocation.of("biomeapi", "net{}momirealms{}biomeapi")
|
||||
|
||||
@@ -140,7 +140,6 @@ public class ItemManagerImpl implements ItemManager {
|
||||
LogUtils.severe(" ItemsAdder: https://www.spigotmc.org/resources/73355/");
|
||||
LogUtils.severe(" Oraxen: https://www.spigotmc.org/resources/72448/");
|
||||
LogUtils.severe("======================================================");
|
||||
Bukkit.getPluginManager().disablePlugin(plugin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user