mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-19 23:19:19 +00:00
1.21
This commit is contained in:
@@ -8,7 +8,7 @@ plugins {
|
|||||||
allprojects {
|
allprojects {
|
||||||
|
|
||||||
project.group = "net.momirealms"
|
project.group = "net.momirealms"
|
||||||
project.version = "3.5.3"
|
project.version = "3.5.4"
|
||||||
|
|
||||||
apply<JavaPlugin>()
|
apply<JavaPlugin>()
|
||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ public class CustomCropsPluginImpl extends CustomCropsPlugin {
|
|||||||
this.dependencyManager.loadDependencies(new ArrayList<>(
|
this.dependencyManager.loadDependencies(new ArrayList<>(
|
||||||
List.of(
|
List.of(
|
||||||
Dependency.GSON,
|
Dependency.GSON,
|
||||||
|
Dependency.EXP4J,
|
||||||
Dependency.SLF4J_API,
|
Dependency.SLF4J_API,
|
||||||
Dependency.SLF4J_SIMPLE,
|
Dependency.SLF4J_SIMPLE,
|
||||||
versionManager.isMojmap() ? Dependency.COMMAND_API_MOJMAP : Dependency.COMMAND_API,
|
versionManager.isMojmap() ? Dependency.COMMAND_API_MOJMAP : Dependency.COMMAND_API,
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public enum Dependency {
|
|||||||
COMMAND_API(
|
COMMAND_API(
|
||||||
"dev{}jorel",
|
"dev{}jorel",
|
||||||
"commandapi-bukkit-shade",
|
"commandapi-bukkit-shade",
|
||||||
"9.5.0",
|
"9.5.1",
|
||||||
null,
|
null,
|
||||||
"commandapi-bukkit",
|
"commandapi-bukkit",
|
||||||
Relocation.of("commandapi", "dev{}jorel{}commandapi")
|
Relocation.of("commandapi", "dev{}jorel{}commandapi")
|
||||||
@@ -71,7 +71,7 @@ public enum Dependency {
|
|||||||
COMMAND_API_MOJMAP(
|
COMMAND_API_MOJMAP(
|
||||||
"dev{}jorel",
|
"dev{}jorel",
|
||||||
"commandapi-bukkit-shade-mojang-mapped",
|
"commandapi-bukkit-shade-mojang-mapped",
|
||||||
"9.5.0",
|
"9.5.1",
|
||||||
null,
|
null,
|
||||||
"commandapi-bukkit-mojang-mapped",
|
"commandapi-bukkit-mojang-mapped",
|
||||||
Relocation.of("commandapi", "dev{}jorel{}commandapi")
|
Relocation.of("commandapi", "dev{}jorel{}commandapi")
|
||||||
@@ -134,6 +134,14 @@ public enum Dependency {
|
|||||||
"2.10.1",
|
"2.10.1",
|
||||||
null,
|
null,
|
||||||
"gson"
|
"gson"
|
||||||
|
),
|
||||||
|
EXP4J(
|
||||||
|
"net{}objecthunter",
|
||||||
|
"exp4j",
|
||||||
|
"0.4.8",
|
||||||
|
null,
|
||||||
|
"exp4j",
|
||||||
|
Relocation.of("exp4j", "net{}objecthunter{}exp4j")
|
||||||
);
|
);
|
||||||
|
|
||||||
private final String mavenRepoPath;
|
private final String mavenRepoPath;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class VersionManagerImpl extends VersionManager {
|
|||||||
this.pluginVersion = plugin.getDescription().getVersion();
|
this.pluginVersion = plugin.getDescription().getVersion();
|
||||||
|
|
||||||
String[] split = plugin.getServerVersion().split("\\.");
|
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 {
|
try {
|
||||||
Class.forName("io.papermc.paper.threadedregions.RegionizedServer");
|
Class.forName("io.papermc.paper.threadedregions.RegionizedServer");
|
||||||
|
|||||||
Reference in New Issue
Block a user