9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-19 15:09:25 +00:00
This commit is contained in:
XiaoMoMi
2024-06-27 00:09:00 +08:00
parent 7089e11810
commit ddc7fd16d5
4 changed files with 13 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ plugins {
allprojects {
project.group = "net.momirealms"
project.version = "3.5.3"
project.version = "3.5.4"
apply<JavaPlugin>()
apply(plugin = "java")

View File

@@ -58,6 +58,7 @@ public class CustomCropsPluginImpl extends CustomCropsPlugin {
this.dependencyManager.loadDependencies(new ArrayList<>(
List.of(
Dependency.GSON,
Dependency.EXP4J,
Dependency.SLF4J_API,
Dependency.SLF4J_SIMPLE,
versionManager.isMojmap() ? Dependency.COMMAND_API_MOJMAP : Dependency.COMMAND_API,

View File

@@ -63,7 +63,7 @@ public enum Dependency {
COMMAND_API(
"dev{}jorel",
"commandapi-bukkit-shade",
"9.5.0",
"9.5.1",
null,
"commandapi-bukkit",
Relocation.of("commandapi", "dev{}jorel{}commandapi")
@@ -71,7 +71,7 @@ public enum Dependency {
COMMAND_API_MOJMAP(
"dev{}jorel",
"commandapi-bukkit-shade-mojang-mapped",
"9.5.0",
"9.5.1",
null,
"commandapi-bukkit-mojang-mapped",
Relocation.of("commandapi", "dev{}jorel{}commandapi")
@@ -134,6 +134,14 @@ public enum Dependency {
"2.10.1",
null,
"gson"
),
EXP4J(
"net{}objecthunter",
"exp4j",
"0.4.8",
null,
"exp4j",
Relocation.of("exp4j", "net{}objecthunter{}exp4j")
);
private final String mavenRepoPath;

View File

@@ -45,7 +45,7 @@ public class VersionManagerImpl extends VersionManager {
this.pluginVersion = plugin.getDescription().getVersion();
String[] split = plugin.getServerVersion().split("\\.");
this.mcVersion = Float.parseFloat(split[1] + "." + split[2]);
this.mcVersion = Float.parseFloat(split[1] + "." + (split.length >= 3 ? split[2] : "0"));
try {
Class.forName("io.papermc.paper.threadedregions.RegionizedServer");