[WIP] FTB Ranks/LuckPerms API's
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
--- a/Common/build.gradle
|
||||
+++ b/Common/build.gradle
|
||||
@@ -1,7 +1,7 @@
|
||||
@@ -1,8 +1,8 @@
|
||||
archivesBaseName = "${mod_name.replace(" ", "")}-Common-${minecraft_version}"
|
||||
|
||||
dependencies {
|
||||
- stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
||||
stupidRemapArch("dev.ftb.mods:ftb-ranks:${ftb_ranks}")
|
||||
+
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,36 @@
|
||||
--- a/Common/src/main/java/com/hypherionmc/craterlib/compat/ftbranks/FTBRanks.java
|
||||
+++ b/Common/src/main/java/com/hypherionmc/craterlib/compat/ftbranks/FTBRanks.java
|
||||
@@ -24,13 +24,13 @@
|
||||
|
||||
public List<BridgedRank> getPlayerRanks(BridgedGameProfile profile) {
|
||||
List<BridgedRank> ranks = new ArrayList<>();
|
||||
- FTBRanksAPI.manager().getAddedRanks(profile.toMojang()).forEach(rank -> ranks.add(BridgedRank.of(rank)));
|
||||
+ FTBRanksAPI.INSTANCE.getManager().getAddedRanks(profile.toMojang()).forEach(rank -> ranks.add(BridgedRank.of(rank)));
|
||||
return ranks;
|
||||
}
|
||||
|
||||
public List<BridgedRank> getAllRanks() {
|
||||
List<BridgedRank> ranks = new ArrayList<>();
|
||||
- FTBRanksAPI.manager().getAllRanks().forEach(r -> ranks.add(BridgedRank.of(r)));
|
||||
+ FTBRanksAPI.INSTANCE.getManager().getAllRanks().forEach(r -> ranks.add(BridgedRank.of(r)));
|
||||
return ranks;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
rank = rank.toLowerCase();
|
||||
|
||||
AtomicBoolean didAddRank = new AtomicBoolean(false);
|
||||
- FTBRanksAPI.manager().getRank(rank).ifPresent(r -> {
|
||||
+ FTBRanksAPI.INSTANCE.getManager().getRank(rank).ifPresent(r -> {
|
||||
r.add(profile.toMojang());
|
||||
didAddRank.set(true);
|
||||
});
|
||||
@@ -54,7 +54,7 @@
|
||||
rank = rank.toLowerCase();
|
||||
|
||||
AtomicBoolean didRemoveRank = new AtomicBoolean(false);
|
||||
- FTBRanksAPI.manager().getRank(rank).ifPresent(r -> {
|
||||
+ FTBRanksAPI.INSTANCE.getManager().getRank(rank).ifPresent(r -> {
|
||||
r.remove(profile.toMojang());
|
||||
didRemoveRank.set(true);
|
||||
});
|
@@ -1,15 +1,16 @@
|
||||
--- a/Fabric/build.gradle
|
||||
+++ b/Fabric/build.gradle
|
||||
@@ -9,8 +9,6 @@
|
||||
@@ -9,9 +9,6 @@
|
||||
exclude(group: "net.fabricmc.fabric-api")
|
||||
}
|
||||
|
||||
- stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
||||
- stupidRemapArch("dev.ftb.mods:ftb-ranks:${ftb_ranks}")
|
||||
-
|
||||
modImplementation "maven.modrinth:fabrictailor:${fabrictailor}"
|
||||
modImplementation "maven.modrinth:vanish:${vanish}"
|
||||
|
||||
@@ -115,8 +113,8 @@
|
||||
@@ -116,8 +113,8 @@
|
||||
setVersionType("release")
|
||||
setChangelog(rootProject.file("changelog.md"))
|
||||
setProjectVersion("${minecraft_version}-${project.version}")
|
||||
|
@@ -1,6 +1,6 @@
|
||||
--- a/NeoForge/build.gradle
|
||||
+++ /dev/null
|
||||
@@ -1,122 +1,0 @@
|
||||
@@ -1,123 +1,0 @@
|
||||
-archivesBaseName = "${mod_name.replace(" ", "")}-NeoForge-${minecraft_version}"
|
||||
-
|
||||
-dependencies {
|
||||
@@ -8,6 +8,7 @@
|
||||
- modImplementation("maven.modrinth:vanishmod:${vanishmod_neo}")
|
||||
-
|
||||
- stupidRemapArch("dev.ftb.mods:ftb-essentials-neoforge:${ftb_essentials}")
|
||||
- stupidRemapArch("dev.ftb.mods:ftb-ranks-neoforge:${ftb_ranks}")
|
||||
-
|
||||
- // Do not edit or remove
|
||||
- implementation project(":Common")
|
||||
|
@@ -40,7 +40,7 @@
|
||||
|
||||
maven {
|
||||
name = "Modrinth"
|
||||
@@ -73,11 +66,13 @@
|
||||
@@ -73,11 +66,14 @@
|
||||
shade "me.hypherionmc.moon-config:toml:${moon_config}"
|
||||
shade "me.hypherionmc.moon-config:json:${moon_config}"
|
||||
shade "com.hypherionmc:rpcsdk:${rpc_sdk}"
|
||||
@@ -51,11 +51,12 @@
|
||||
shade "net.kyori:adventure-text-minimessage:${adventure}"
|
||||
|
||||
+ stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
||||
+ stupidRemapArch("dev.ftb.mods:ftb-ranks:${ftb_ranks}")
|
||||
+
|
||||
compileOnly 'net.luckperms:api:5.4'
|
||||
compileOnly("org.projectlombok:lombok:${lombok}")
|
||||
annotationProcessor("org.projectlombok:lombok:${lombok}")
|
||||
@@ -124,7 +119,7 @@
|
||||
@@ -124,7 +120,7 @@
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
it.options.encoding = 'UTF-8'
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
# Dependencies
|
||||
moon_config=1.0.10
|
||||
@@ -31,17 +28,16 @@
|
||||
@@ -31,18 +28,17 @@
|
||||
discord_formatter=2.0.0
|
||||
|
||||
# Mod Dependencies
|
||||
@@ -33,6 +33,8 @@
|
||||
-vanishmod=1.1.12.1
|
||||
-vanishmod_neo=puxrKAMr
|
||||
-ftb_essentials=2101.1.0
|
||||
-ftb_ranks=2101.1.1
|
||||
+ftb_ranks=1802.1.11-build.71
|
||||
+ftb_essentials=1802.2.2-build.83
|
||||
+fabrictailor=1.9.0+1.18.2
|
||||
+vanish=1.1.0
|
||||
|
Reference in New Issue
Block a user