[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) {
|
||||
FTBEPlayerData data = FTBEPlayerData.get(player.toMojang());
|
||||
return data != null && data.muted;
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -9,6 +9,7 @@ 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,7 @@ dependencies {
|
||||
// Compat
|
||||
modImplementation("maven.modrinth:vanishmod:${vanishmod}")
|
||||
|
||||
stupidRemapArch("dev.ftb.mods:ftb-essentials-forge:${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 {
|
||||
|
@@ -18,7 +18,7 @@ fabric_loader=0.15.11
|
||||
fabric_api=0.76.0+1.19.2
|
||||
|
||||
# Forge
|
||||
forge_version=43.2.0
|
||||
forge_version=43.4.0
|
||||
|
||||
# Dependencies
|
||||
moon_config=1.0.9
|
||||
@@ -28,6 +28,7 @@ rpc_sdk=1.0
|
||||
discord_formatter=2.0.0
|
||||
|
||||
# Mod Dependencies
|
||||
ftb_essentials=1902.3.5-build.135
|
||||
fabrictailor=2.0.1
|
||||
vanish=1.3.2
|
||||
mod_menu_version=4.2.0-beta.2
|
||||
|
Reference in New Issue
Block a user