[DEV] FTB Essentials Muting System Compat
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
archivesBaseName = "${mod_name.replace(" ", "")}-Common-${minecraft_version}"
|
||||
|
||||
dependencies {
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
|
@@ -0,0 +1,16 @@
|
||||
package com.hypherionmc.craterlib.compat;
|
||||
|
||||
import com.hypherionmc.craterlib.nojang.world.entity.player.BridgedPlayer;
|
||||
import dev.ftb.mods.ftbessentials.util.FTBEPlayerData;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
public class FTBEssentials {
|
||||
|
||||
public static boolean isPlayerMuted(BridgedPlayer player) {
|
||||
Optional<FTBEPlayerData> data = FTBEPlayerData.getOrCreate(player.toMojang());
|
||||
return data.map(FTBEPlayerData::isMuted).orElse(false);
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -9,6 +9,8 @@ dependencies {
|
||||
exclude(group: "net.fabricmc.fabric-api")
|
||||
}
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
||||
|
||||
modImplementation "maven.modrinth:fabrictailor:${fabrictailor}"
|
||||
modImplementation "maven.modrinth:vanish:${vanish}"
|
||||
|
||||
|
@@ -5,6 +5,8 @@ dependencies {
|
||||
// Compat
|
||||
modImplementation("maven.modrinth:vanishmod:${vanishmod}")
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials-forge:${ftb_essentials}")
|
||||
|
||||
// Do not edit or remove
|
||||
implementation project(":Common")
|
||||
}
|
||||
|
@@ -4,6 +4,8 @@ dependencies {
|
||||
// Compat
|
||||
modImplementation("maven.modrinth:vanishmod:${vanishmod_neo}")
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials-neoforge:${ftb_essentials}")
|
||||
|
||||
// Do not edit or remove
|
||||
implementation project(":Common")
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
|
||||
id "xyz.wagyourtail.unimined" version "1.2.4" apply false
|
||||
id "xyz.wagyourtail.unimined" version "1.3.9" apply false
|
||||
id "com.hypherionmc.modutils.modpublisher" version "2.1.6"
|
||||
id "com.hypherionmc.modutils.orion" version "1.0.+"
|
||||
id 'maven-publish'
|
||||
@@ -49,8 +49,10 @@ subprojects {
|
||||
configurations {
|
||||
shade
|
||||
modCompileOnly
|
||||
stupidRemapArch
|
||||
implementation.extendsFrom shade
|
||||
compileOnly.extendsFrom modCompileOnly
|
||||
compileOnly.extendsFrom stupidRemapArch
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -98,6 +100,12 @@ subprojects {
|
||||
mojmap()
|
||||
devNamespace "mojmap"
|
||||
}
|
||||
|
||||
mods {
|
||||
remap(configurations.stupidRemapArch) {
|
||||
catchAWNamespaceAssertion()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
|
@@ -36,6 +36,7 @@ vanish=1.5.4+1.20.4
|
||||
mod_menu_version=9.2.0-beta.2
|
||||
vanishmod=1.1.15
|
||||
vanishmod_neo=puxrKAMr
|
||||
ftb_essentials=2004.1.3
|
||||
|
||||
# Publishing
|
||||
curse_id=867099
|
||||
|
Reference in New Issue
Block a user