Skip to content

Commit

Permalink
Update to 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pop4959 committed Nov 3, 2024
1 parent abdb14a commit 09cc15c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ subprojects {
plugins.apply("java-library")

group = "ru.bk.oharass.freedomchat"
version = "1.7.0"
version = "1.7.1"
description = "Liberate your server from the chat-reporting bourgeoisie! Disable chat signing server-side."

tasks {
Expand Down
12 changes: 6 additions & 6 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("dev.architectury.loom") version "1.6-SNAPSHOT"
id("io.github.goooler.shadow") version "8.1.7"
id("dev.architectury.loom") version "1.7-SNAPSHOT"
id("com.gradleup.shadow") version "8.3.5"
}

val shade: Configuration by configurations.creating
Expand All @@ -13,10 +13,10 @@ repositories {
}

dependencies {
minecraft(group = "com.mojang", name = "minecraft", version = "1.21")
mappings(group = "net.fabricmc", name = "yarn", version = "1.21+build.7", classifier = "v2")
modImplementation(group = "net.fabricmc", name = "fabric-loader", version = "0.15.11")
modImplementation(group = "net.fabricmc.fabric-api", name = "fabric-api", version = "0.100.4+1.21")
minecraft(group = "com.mojang", name = "minecraft", version = "1.21.3")
mappings(group = "net.fabricmc", name = "yarn", version = "1.21.3+build.2", classifier = "v2")
modImplementation(group = "net.fabricmc", name = "fabric-loader", version = "0.16.9")
modImplementation(group = "net.fabricmc.fabric-api", name = "fabric-api", version = "0.107.0+1.21.3")
shade(implementation(group = "org.spongepowered", name = "configurate-yaml", version = "4.1.2"))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class FreedomChat implements ModInitializer {
public void onInitialize() {
ServerLifecycleEvents.SERVER_STARTED.register(server -> {
this.server = server;
if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && SharedConstants.getProtocolVersion() != 767) {
logger.warn("This version of FreedomChat only supports protocol version 767 (1.21). Please use the appropriate version of FreedomChat for your server");
if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && SharedConstants.getProtocolVersion() != 768) {
logger.warn("This version of FreedomChat only supports protocol version 768 (1.21.3). Please use the appropriate version of FreedomChat for your server");
logger.warn("If you know what you are doing, set the im.evan.freedomchat.bypassprotocolcheck system property to true to bypass this check");
return;
}
Expand All @@ -37,7 +37,7 @@ public void onInitialize() {
try {
config = loader.load();
final boolean rewriteChat = config.node("rewrite-chat").getBoolean(true);
final boolean claimSecureChatEnforced = config.node("claim-secure-chat-enforced").getBoolean(true);
final boolean claimSecureChatEnforced = config.node("claim-secure-chat-enforced").getBoolean(false);
final boolean noChatReports = config.node("send-prevents-chat-reports-to-client").getBoolean(false);
loader.save(config);

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
8 changes: 4 additions & 4 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
plugins {
id("io.papermc.paperweight.userdev") version "1.7.1"
id("xyz.jpenilla.run-paper") version "2.3.0"
id("io.papermc.paperweight.userdev") version "1.7.4"
id("xyz.jpenilla.run-paper") version "2.3.1"
}

paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION

dependencies {
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
}

tasks {
runServer {
minecraftVersion("1.21")
minecraftVersion("1.21.3")
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public class FreedomChat extends JavaPlugin implements Listener {

@Override
public void onEnable() {
if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && this.getServer().getUnsafe().getProtocolVersion() != 767) {
getLogger().warning("This version of FreedomChat only supports protocol version 767 (1.21). Please use the appropriate version of FreedomChat for your server");
if (!Boolean.getBoolean("im.evan.freedomchat.bypassprotocolcheck") && this.getServer().getUnsafe().getProtocolVersion() != 768) {
getLogger().warning("This version of FreedomChat only supports protocol version 768 (1.21.3). Please use the appropriate version of FreedomChat for your server");
getLogger().warning("If you know what you are doing, set the im.evan.freedomchat.bypassprotocolcheck system property to true to bypass this check");
this.getServer().getPluginManager().disablePlugin(this);
return;
Expand All @@ -26,7 +26,7 @@ public void onEnable() {

final FreedomHandler handler = new FreedomHandler(
config.getBoolean("rewrite-chat", true),
config.getBoolean("claim-secure-chat-enforced", true),
config.getBoolean("claim-secure-chat-enforced", false),
config.getBoolean("send-prevents-chat-reports-to-client", false)
);

Expand Down
4 changes: 3 additions & 1 deletion paper/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ rewrite-chat: true
# not signing their messages join. In modern versions, clients also
# require a valid access token to be present for the toast to be hidden.
# That being said, you may still see the toast even if this option is enabled.
claim-secure-chat-enforced: true
# Note that enabling this option may violate Minecraft's usage guidelines.
# See https://www.minecraft.net/en-us/usage-guidelines for more information.
claim-secure-chat-enforced: false

# Whether to report the server as secure (disabling chat reporting) to the
# NoChatReports client mod. This displays a green icon on the server list
Expand Down

0 comments on commit 09cc15c

Please sign in to comment.