summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/NCRClient.java10
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/NCRCore.java7
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/NCRMixinPlugin.java46
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/config/ClothConfigIntegration.java25
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/config/JSONConfig.java25
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/config/NCRConfig.java50
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/config/NCRConfigClient.java26
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/config/NCRConfigCommon.java10
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/config/NCRServerPreferences.java8
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/core/ServerSafetyState.java79
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/core/ServerStatusCache.java7
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatListener.java3
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatOptionsScreen.java8
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatScreen.java8
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinClientPacketListenerTick.java20
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinConnectScreen.java3
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java43
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinMinecraft.java3
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinOptions.java4
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinRealmsConnect.java4
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinServerStatusPinger$1.java53
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java47
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/platform/PlatformProvider.java2
-rw-r--r--src/main/java/com/aizistral/nochatreports/fabric/NoChatReports.java5
-rw-r--r--src/main/java/com/aizistral/nochatreports/fabric/NoChatReportsClient.java4
-rw-r--r--src/main/java/com/aizistral/nochatreports/loader/LoaderPaths.java17
-rw-r--r--src/main/resources/assets/nochatreports/lang/ca_es.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/cs_cz.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/da_dk.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/de_de.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/en_pt.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/en_us.json11
-rw-r--r--src/main/resources/assets/nochatreports/lang/es_ar.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/es_es.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/es_mx.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/et_ee.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/fi_fi.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/fr_fr.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/id_id.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/ja_jp.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/ko_kr.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/ms_my.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/nl_nl.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/pl_pl.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/pt_br.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/ro_ro.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/ru_ru.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/sk_sk.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/th_th.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/tr_tr.json3
-rw-r--r--src/main/resources/assets/nochatreports/lang/uk_ua.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/vi_vn.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/zh_cn.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/zh_tw.json6
-rw-r--r--src/main/resources/assets/nochatreports/lang/zlm_arab.json6
-rw-r--r--src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button.pngbin459 -> 0 bytes
-rw-r--r--src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_disabled.pngbin459 -> 0 bytes
-rw-r--r--src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_hovered.pngbin470 -> 0 bytes
-rw-r--r--src/main/resources/mixins/common/nochatreports.mixins.json2
-rw-r--r--src/main/resources/mixins/fabric/nochatreports-fabric.mixins.json1
60 files changed, 337 insertions, 335 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/common/NCRClient.java b/src/main/java/com/aizistral/nochatreports/common/NCRClient.java
index 0f9aff9..0b2cd3f 100644
--- a/src/main/java/com/aizistral/nochatreports/common/NCRClient.java
+++ b/src/main/java/com/aizistral/nochatreports/common/NCRClient.java
@@ -44,9 +44,6 @@ public class NCRClient {
}
private static void onDisconnect(Minecraft client) {
- if (!NCRConfig.getClient().enableMod())
- return;
-
if (NCRConfig.getCommon().enableDebugLog()) {
NCRCore.LOGGER.info("Disconnected from server, resetting safety state!");
}
@@ -55,9 +52,6 @@ public class NCRClient {
}
private static void onPlayReady(ClientPacketListener handler, Minecraft client) {
- if (!NCRConfig.getClient().enableMod())
- return;
-
client.execute(() -> {
if (!client.isLocalServer()) {
if (ServerSafetyState.isOnRealms()) {
@@ -96,7 +90,7 @@ public class NCRClient {
signingKeysPresent = present;
}
- public static void resendLastChatMessage() {
+ public static void resendChatMessage(String message) {
var mc = Minecraft.getInstance();
var chatScr = mc.screen instanceof ChatScreen chat ? chat : null;
@@ -105,7 +99,7 @@ public class NCRClient {
chatScr.init(mc.getWindow().getGuiScaledWidth(), mc.getWindow().getGuiScaledHeight());
}
- chatScr.handleChatInput(ServerSafetyState.getLastMessage(), false);
+ chatScr.handleChatInput(message, false);
}
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/NCRCore.java b/src/main/java/com/aizistral/nochatreports/common/NCRCore.java
index 06949f7..4eef76f 100644
--- a/src/main/java/com/aizistral/nochatreports/common/NCRCore.java
+++ b/src/main/java/com/aizistral/nochatreports/common/NCRCore.java
@@ -28,6 +28,11 @@ public class NCRCore {
Preconditions.checkArgument(provider == null, "NCRCore already awake");
provider = platformProvider;
+ if (!NCRConfig.isModRunning()) {
+ LOGGER.info("No Chat Reports is disabled in its config and will not initialize.");
+ return;
+ }
+
setup();
if (provider.isOnClient()) {
@@ -39,7 +44,7 @@ public class NCRCore {
LOGGER.debug("KONNICHIWA ZA WARUDO!");
LOGGER.debug("Default JVM text encoding is: " + Charset.defaultCharset().displayName());
- NCRConfig.load();
+ NCRConfig.save();
}
@Environment(EnvType.CLIENT)
diff --git a/src/main/java/com/aizistral/nochatreports/common/NCRMixinPlugin.java b/src/main/java/com/aizistral/nochatreports/common/NCRMixinPlugin.java
new file mode 100644
index 0000000..1155ead
--- /dev/null
+++ b/src/main/java/com/aizistral/nochatreports/common/NCRMixinPlugin.java
@@ -0,0 +1,46 @@
+package com.aizistral.nochatreports.common;
+
+import java.util.List;
+import java.util.Set;
+
+import org.objectweb.asm.tree.ClassNode;
+import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
+import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
+
+import com.aizistral.nochatreports.common.config.NCRConfig;
+
+public class NCRMixinPlugin implements IMixinConfigPlugin {
+ private static final String TOGGLE_BUTTON_MIXIN = "com.aizistral.nochatreports.common.mixins.client.MixinJoinMultiplayerScreen";
+
+ @Override
+ public void onLoad(String mixinPackage) {
+ }
+
+ @Override
+ public String getRefMapperConfig() {
+ return null;
+ }
+
+ @Override
+ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
+ return NCRConfig.isModRunning() || TOGGLE_BUTTON_MIXIN.equals(mixinClassName);
+ }
+
+ @Override
+ public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {
+ }
+
+ @Override
+ public List<String> getMixins() {
+ return null;
+ }
+
+ @Override
+ public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {
+ }
+
+ @Override
+ public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {
+ }
+
+}
diff --git a/src/main/java/com/aizistral/nochatreports/common/config/ClothConfigIntegration.java b/src/main/java/com/aizistral/nochatreports/common/config/ClothConfigIntegration.java
index 4d4ee53..99cf558 100644
--- a/src/main/java/com/aizistral/nochatreports/common/config/ClothConfigIntegration.java
+++ b/src/main/java/com/aizistral/nochatreports/common/config/ClothConfigIntegration.java
@@ -5,7 +5,6 @@ import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
-import com.aizistral.nochatreports.common.core.ServerSafetyState;
import com.aizistral.nochatreports.common.core.SigningMode;
import com.aizistral.nochatreports.common.gui.FontHelper;
@@ -73,19 +72,24 @@ public final class ClothConfigIntegration {
.setTitle(Component.translatable("configuration.NoChatReports.config"));
// Set category
+ ConfigCategory common = builder.getOrCreateCategory(Component.translatable("configuration.NoChatReports.category.common"));
ConfigCategory client = builder.getOrCreateCategory(Component.translatable("configuration.NoChatReports.category.client"));
ConfigCategory lan = builder.getOrCreateCategory(Component.translatable("configuration.NoChatReports.category.lan"));
ConfigEntryBuilder entryBuilder = builder.entryBuilder();
+ String enableModTooltip = translateKey("option.NoChatReports.enableMod.tooltip");
+
+ if (NCRConfig.getCommon().getSavedEnableMod() != NCRConfig.isModRunning()) {
+ enableModTooltip += "\n" + translateKey("gui.nochatreports.ncr_toggle_restart_pending");
+ }
+
// Set an option for enableMod
- client.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.enableMod"), NCRConfig.getClient().enableMod)
+ common.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.enableMod"), NCRConfig.getCommon().getSavedEnableMod())
.setDefaultValue(true)
- .setTooltip(makeTooltip("option.NoChatReports.enableMod.tooltip"))
- .setSaveConsumer(newValue -> ServerSafetyState.scheduleResetAction(() -> {
- NCRConfig.getClient().enableMod = newValue;
- NCRConfig.getClient().saveFile();
- }))
+ .setTooltip(wrapTooltip(enableModTooltip))
+ .requireRestart()
+ .setSaveConsumer(newValue -> NCRConfig.getCommon().setSavedEnableMod(newValue))
.build());
// Set an option for showNCRButton
@@ -129,13 +133,6 @@ public final class ClothConfigIntegration {
.build()
);
- // Set an option for showReloadButton
- client.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.showReloadButton"), NCRConfig.getClient().showReloadButton)
- .setDefaultValue(true)
- .setTooltip(makeTooltip("option.NoChatReports.showReloadButton.tooltip"))
- .setSaveConsumer(newValue -> NCRConfig.getClient().showReloadButton = newValue)
- .build());
-
// Set an option for verifiedIconEnabled
client.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.verifiedIconEnabled"), NCRConfig.getClient().verifiedIconEnabled)
.setDefaultValue(true)
diff --git a/src/main/java/com/aizistral/nochatreports/common/config/JSONConfig.java b/src/main/java/com/aizistral/nochatreports/common/config/JSONConfig.java
index 12a9937..c7c236f 100644
--- a/src/main/java/com/aizistral/nochatreports/common/config/JSONConfig.java
+++ b/src/main/java/com/aizistral/nochatreports/common/config/JSONConfig.java
@@ -8,16 +8,14 @@ import java.util.Optional;
import java.util.function.Supplier;
import com.aizistral.nochatreports.common.NCRCore;
+import com.aizistral.nochatreports.loader.LoaderPaths;
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
-import net.fabricmc.api.EnvType;
-import net.minecraft.client.multiplayer.resolver.ServerAddress;
-
public abstract class JSONConfig {
- protected static final Path CONFIG_DIR = NCRCore.getProvider().getConfigDir();
+ protected static final Path CONFIG_DIR = LoaderPaths.getConfigDir();
protected static final Gson GSON = createGson();
protected final String fileName;
@@ -37,6 +35,10 @@ public abstract class JSONConfig {
writeFile(this.fileName, this);
}
+ protected Gson getGson() {
+ return GSON;
+ }
+
protected void uponLoad() {
// NO-OP
}
@@ -45,19 +47,20 @@ public abstract class JSONConfig {
public static <T extends JSONConfig> T loadConfig(Class<T> configClass, Supplier<T> freshInstance, String fileName) {
NCRCore.LOGGER.debug("Reading config file {}...", fileName);
- T config = readFile(fileName, configClass).orElseGet(freshInstance);
+ T defaults = freshInstance.get();
+ T config = readFile(fileName, configClass, defaults.getGson()).orElse(defaults);
config.uponLoad();
return config;
}
- private static <T extends JSONConfig> Optional<T> readFile(String fileName, Class<T> configClass) {
+ private static <T extends JSONConfig> Optional<T> readFile(String fileName, Class<T> configClass, Gson gson) {
Path file = CONFIG_DIR.resolve(fileName);
if (!Files.isRegularFile(file))
return Optional.empty();
try (BufferedReader reader = Files.newBufferedReader(file)) {
- return Optional.of(GSON.fromJson(reader, configClass));
+ return Optional.of(gson.fromJson(reader, configClass));
} catch (Exception ex) {
NCRCore.LOGGER.fatal("Could not read config file: {}", file);
NCRCore.LOGGER.fatal("This likely indicates the file is corrupted. "
@@ -67,13 +70,13 @@ public abstract class JSONConfig {
}
}
- private static <T> void writeFile(String fileName, T config) {
+ private static void writeFile(String fileName, JSONConfig config) {
Path file = CONFIG_DIR.resolve(fileName);
try {
Files.createDirectories(file.getParent());
try (BufferedWriter writer = Files.newBufferedWriter(file)) {
- GSON.toJson(config, writer);
+ config.getGson().toJson(config, writer);
}
} catch (Exception ex) {
NCRCore.LOGGER.fatal("Could not write config file: {}", file);
@@ -98,10 +101,6 @@ public abstract class JSONConfig {
}
});
- if (NCRCore.getProvider().isOnClient()) {
- builder.registerTypeAdapter(ServerAddress.class, ServerAddressAdapter.INSTANCE);
- }
-
return builder.create();
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/config/NCRConfig.java b/src/main/java/com/aizistral/nochatreports/common/config/NCRConfig.java
index 14289d4..064238b 100644
--- a/src/main/java/com/aizistral/nochatreports/common/config/NCRConfig.java
+++ b/src/main/java/com/aizistral/nochatreports/common/config/NCRConfig.java
@@ -3,7 +3,7 @@ package com.aizistral.nochatreports.common.config;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
-import java.util.function.Supplier;
+import java.util.List;
import com.aizistral.nochatreports.common.NCRCore;
@@ -14,51 +14,51 @@ public final class NCRConfig {
private static NCRConfigCommon common = null;
private static NCRConfigClient client = null;
private static NCRServerPreferences serverPreferences = null;
+ private static boolean modRunning = false;
private NCRConfig() {
throw new IllegalStateException("Can't touch this");
}
- public static NCRConfigCommon getCommon() {
- return checkLoaded(() -> common);
- }
+ public static synchronized NCRConfigCommon getCommon() {
+ if (common == null) {
+ common = JSONConfig.loadConfig(NCRConfigCommon.class, NCRConfigCommon::new, NCRConfigCommon.FILE_NAME);
+ modRunning = common.getSavedEnableMod();
+ NCRCore.LOGGER.info("Mod Enabled: {}", modRunning);
+ }
- @Environment(EnvType.CLIENT)
- public static NCRConfigClient getClient() {
- return checkLoaded(() -> client);
+ return common;
}
- @Environment(EnvType.CLIENT)
- public static NCRServerPreferences getServerPreferences() {
- return checkLoaded(() -> serverPreferences);
+ public static boolean isModRunning() {
+ getCommon();
+ return modRunning;
}
- private static <T extends JSONConfig> T checkLoaded(Supplier<T> config) {
- if (config.get() == null) {
- load();
+ @Environment(EnvType.CLIENT)
+ public static synchronized NCRConfigClient getClient() {
+ if (client == null) {
+ client = JSONConfig.loadConfig(NCRConfigClient.class, NCRConfigClient::new, NCRConfigClient.FILE_NAME);
}
- return config.get();
+ return client;
}
- public static void load() {
- common = JSONConfig.loadConfig(NCRConfigCommon.class, NCRConfigCommon::new, NCRConfigCommon.FILE_NAME);
-
- if (NCRCore.getProvider().isOnClient()) {
- client = JSONConfig.loadConfig(NCRConfigClient.class, NCRConfigClient::new, NCRConfigClient.FILE_NAME);
+ @Environment(EnvType.CLIENT)
+ public static synchronized NCRServerPreferences getServerPreferences() {
+ if (serverPreferences == null) {
serverPreferences = JSONConfig.loadConfig(NCRServerPreferences.class, NCRServerPreferences::new, NCRServerPreferences.FILE_NAME);
}
- save();
+ return serverPreferences;
}
public static void save() {
- checkLoaded(() -> common).saveFile();
+ List<JSONConfig> configs = NCRCore.getProvider().isOnClient()
+ ? List.of(getCommon(), getClient(), getServerPreferences())
+ : List.of(getCommon());
- if (NCRCore.getProvider().isOnClient()) {
- checkLoaded(() -> client).saveFile();
- checkLoaded(() -> serverPreferences).saveFile();
- }
+ configs.forEach(JSONConfig::saveFile);
Path readme = JSONConfig.CONFIG_DIR.resolve("NoChatReports/README.md");
try {
diff --git a/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigClient.java b/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigClient.java
index 30db481..3644301 100644
--- a/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigClient.java
+++ b/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigClient.java
@@ -9,7 +9,7 @@ public final class NCRConfigClient extends JSONConfig {
protected static final String FILE_NAME = "NoChatReports/NCR-Client.json";
protected SigningMode defaultSigningMode = SigningMode.PROMPT;
- protected boolean enableMod = true, showNCRButton = true, showReloadButton = true,
+ protected boolean showNCRButton = true,
verifiedIconEnabled = true, showServerSafety = true, hideInsecureMessageIndicators = true,
hideModifiedMessageIndicators = true, hideSystemMessageIndicators = true,
hideWarningToast = true, hideSigningRequestMessage = false, alwaysHideReportButton = false,
@@ -26,10 +26,6 @@ public final class NCRConfigClient extends JSONConfig {
return new NCRConfigClient();
}
- public void toggleMod() {
- this.enableMod = !this.enableMod;
- }
-
/**
* @return True if client with No Chat Reports installed should demand that mod is present on
* every server that it tries to join. In that case client will not be able to join servers that
@@ -125,17 +121,6 @@ public final class NCRConfigClient extends JSONConfig {
}
/**
- * @return True if the configuration reload button should be displayed in multiplayer screen.
- * <br><br>
- *
- * This is true by default.
- */
-
- public boolean showReloadButton() {
- return this.showReloadButton;
- }
-
- /**
* @return True if "Safe Server" icon should be displayed in multiplayer menu for servers that
* declare themselves as preventing chat reports.<br><br>
*
@@ -173,14 +158,6 @@ public final class NCRConfigClient extends JSONConfig {
}
/**
- * @return Whether or not No Chat Reports should provide networking-related functionality.
- */
-
- public boolean enableMod() {
- return this.enableMod;
- }
-
- /**
* @return Whether warning on entering Realms screen should not be displayed.
*/
@@ -190,6 +167,7 @@ public final class NCRConfigClient extends JSONConfig {
public void setSkipRealmsWarning(boolean skipRealmsWarning) {
this.skipRealmsWarning = skipRealmsWarning;
+ this.saveFile();
}
public boolean hideSigningRequestMessage() {
diff --git a/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigCommon.java b/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigCommon.java
index 9242d90..9da10bb 100644
--- a/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigCommon.java
+++ b/src/main/java/com/aizistral/nochatreports/common/config/NCRConfigCommon.java
@@ -3,6 +3,7 @@ package com.aizistral.nochatreports.common.config;
public final class NCRConfigCommon extends JSONConfig {
protected static final String FILE_NAME = "NoChatReports/NCR-Common.json";
+ protected boolean enableMod = true;
protected String demandOnClientMessage = "You do not have No Chat Reports, and this server is"
+ " configured to require it on client!";
protected boolean demandOnClient = false, convertToGameMessage = true,
@@ -17,6 +18,15 @@ public final class NCRConfigCommon extends JSONConfig {
return new NCRConfigCommon();
}
+ public boolean getSavedEnableMod() {
+ return this.enableMod;
+ }
+
+ public void setSavedEnableMod(boolean enableMod) {
+ this.enableMod = enableMod;
+ this.saveFile();
+ }
+
/**
* @return True if server with No Chat Reports installed should demand that mod is present on
* every client that tries to join. Mod's installation on client is optional otherwise.<br><br>
diff --git a/src/main/java/com/aizistral/nochatreports/common/config/NCRServerPreferences.java b/src/main/java/com/aizistral/nochatreports/common/config/NCRServerPreferences.java
index 77b12c1..8589c9e 100644
--- a/src/main/java/com/aizistral/nochatreports/common/config/NCRServerPreferences.java
+++ b/src/main/java/com/aizistral/nochatreports/common/config/NCRServerPreferences.java
@@ -7,11 +7,14 @@ import org.jetbrains.annotations.Nullable;
import com.aizistral.nochatreports.common.NCRClient;
import com.aizistral.nochatreports.common.core.ServerSafetyState;
import com.aizistral.nochatreports.common.core.SigningMode;
+import com.google.gson.Gson;
import net.minecraft.client.multiplayer.resolver.ServerAddress;
public class NCRServerPreferences extends JSONConfig {
protected static final String FILE_NAME = "NoChatReports/NCR-ServerPreferences.json";
+ private static final Gson PREFERENCES_GSON = GSON.newBuilder()
+ .registerTypeAdapter(ServerAddress.class, ServerAddressAdapter.INSTANCE).create();
protected HashMap<ServerAddress, SigningMode> signingModes = new HashMap<>();
protected NCRServerPreferences() {
@@ -23,6 +26,11 @@ public class NCRServerPreferences extends JSONConfig {
return new NCRServerPreferences();
}
+ @Override
+ protected Gson getGson() {
+ return PREFERENCES_GSON;
+ }
+
public SigningMode getModeRaw(@Nullable ServerAddress address) {
return this.signingModes.get(address);
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/core/ServerSafetyState.java b/src/main/java/com/aizistral/nochatreports/common/core/ServerSafetyState.java
index 9e85138..9f3a62e 100644
--- a/src/main/java/com/aizistral/nochatreports/common/core/ServerSafetyState.java
+++ b/src/main/java/com/aizistral/nochatreports/common/core/ServerSafetyState.java
@@ -1,11 +1,17 @@
package com.aizistral.nochatreports.common.core;
+import com.aizistral.nochatreports.common.NCRCore;
+import com.aizistral.nochatreports.common.config.NCRConfig;
import com.aizistral.nochatreports.common.gui.UnsafeServerScreen;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.Minecraft;
+import net.minecraft.client.multiplayer.ClientPacketListener;
+import net.minecraft.client.multiplayer.PlayerInfo;
+import net.minecraft.client.multiplayer.ServerData;
import net.minecraft.client.multiplayer.resolver.ServerAddress;
import net.minecraft.network.chat.LocalChatSession;
+import net.minecraft.network.chat.RemoteChatSession;
import net.minecraft.network.protocol.game.ServerboundChatSessionUpdatePacket;
import org.jetbrains.annotations.Nullable;
@@ -21,9 +27,11 @@ import java.util.concurrent.atomic.AtomicBoolean;
@Environment(EnvType.CLIENT)
public final class ServerSafetyState {
- private static final List<Runnable> RESET_ACTIONS = new ArrayList<>();
private static final List<Runnable> SIGNING_ACTIONS = new ArrayList<>();
private static final AtomicBoolean ALLOW_CHAT_SIGNING = new AtomicBoolean(false);
+ private static final int SESSION_ACK_TIMEOUT_TICKS = 60;
+ private static ClientPacketListener signingActionsOwner = null;
+ private static int sessionAckTicksLeft = 0;
private volatile static ServerSafetyLevel current = ServerSafetyLevel.UNDEFINED;
private volatile static ServerAddress lastServer = null;
private volatile static String lastMessage = "???";
@@ -49,18 +57,56 @@ public final class ServerSafetyState {
if (allow && connection.chatSession == null)
return mc.getProfileKeyPairManager().prepareKeyPair()
- .thenAcceptAsync(optional -> optional.ifPresent(profileKeyPair -> {
- connection.setKeyPair(profileKeyPair);
-
- SIGNING_ACTIONS.forEach(Runnable::run);
- SIGNING_ACTIONS.clear();
- }), mc);
+ .thenAcceptAsync(optional -> optional.ifPresent(connection::setKeyPair), mc);
}
}
return CompletableFuture.completedFuture(null);
}
+ public static void tickSigningActions(ClientPacketListener connection) {
+ if (SIGNING_ACTIONS.isEmpty())
+ return;
+
+ if (connection != signingActionsOwner) {
+ SIGNING_ACTIONS.clear();
+ signingActionsOwner = null;
+ return;
+ }
+
+ if (connection.chatSession == null)
+ return;
+
+ boolean acknowledged = isChatSessionAcknowledged(connection);
+ boolean ncrServer = !acknowledged && isNoChatReportsServer();
+
+ if (!acknowledged && !ncrServer && --sessionAckTicksLeft > 0)
+ return;
+
+ if (NCRConfig.getCommon().enableDebugLog()) {
+ NCRCore.LOGGER.info(acknowledged ? "Server acknowledged chat session, running signing actions."
+ : ncrServer ? "Server runs No Chat Reports, running signing actions without acknowledgement."
+ : "Server did not acknowledge chat session in time, running signing actions anyway.");
+ }
+
+ List<Runnable> actions = new ArrayList<>(SIGNING_ACTIONS);
+ SIGNING_ACTIONS.clear();
+ signingActionsOwner = null;
+ actions.forEach(Runnable::run);
+ }
+
+ private static boolean isChatSessionAcknowledged(ClientPacketListener connection) {
+ PlayerInfo info = connection.getPlayerInfo(connection.getLocalGameProfile().id());
+ RemoteChatSession remote = info != null ? info.getChatSession() : null;
+ return remote != null && remote.sessionId().equals(connection.chatSession.sessionId());
+ }
+
+ private static boolean isNoChatReportsServer() {
+ ServerData server = Minecraft.getInstance().getCurrentServer();
+ return server instanceof ServerDataExtension data && data.preventsChatReports()
+ && ServerAddress.parseString(server.ip).equals(lastServer);
+ }
+
public static void toggleChatSigning() {
setAllowChatSigning(!ALLOW_CHAT_SIGNING.get());
}
@@ -95,12 +141,16 @@ public final class ServerSafetyState {
lastMessage = message;
}
- public static void scheduleResetAction(Runnable action) {
- RESET_ACTIONS.add(action);
- }
-
public static void scheduleSigningAction(Runnable action) {
+ ClientPacketListener connection = Minecraft.getInstance().getConnection();
+
+ if (connection != signingActionsOwner) {
+ SIGNING_ACTIONS.clear();
+ signingActionsOwner = connection;
+ }
+
SIGNING_ACTIONS.add(action);
+ sessionAckTicksLeft = SESSION_ACK_TIMEOUT_TICKS;
}
public static void reset() {
@@ -109,9 +159,10 @@ public final class ServerSafetyState {
ALLOW_CHAT_SIGNING.set(false);
UnsafeServerScreen.setHideThisSession(false);
- RESET_ACTIONS.forEach(Runnable::run);
- RESET_ACTIONS.clear();
- SIGNING_ACTIONS.clear();
+ if (Minecraft.getInstance().isSameThread()) {
+ SIGNING_ACTIONS.clear();
+ signingActionsOwner = null;
+ }
}
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/core/ServerStatusCache.java b/src/main/java/com/aizistral/nochatreports/common/core/ServerStatusCache.java
index 675c9a8..9d199ff 100644
--- a/src/main/java/com/aizistral/nochatreports/common/core/ServerStatusCache.java
+++ b/src/main/java/com/aizistral/nochatreports/common/core/ServerStatusCache.java
@@ -5,14 +5,15 @@ import net.fabricmc.api.Environment;
//@Environment(EnvType.CLIENT)
public class ServerStatusCache {
- private static ThreadLocal<Boolean> preventsReports = new ThreadLocal<>();
+ private static final ThreadLocal<Boolean> PREVENTS_REPORTS = new ThreadLocal<>();
public static boolean doesPreventReports() {
- return preventsReports.get();
+ Boolean value = PREVENTS_REPORTS.get();
+ return value != null && value.booleanValue();
}
public static void setPreventsReports(boolean doesPreventReports) {
- preventsReports.set(doesPreventReports);
+ PREVENTS_REPORTS.set(Boolean.valueOf(doesPreventReports));
}
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatListener.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatListener.java
index 0480908..449503b 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatListener.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatListener.java
@@ -60,7 +60,8 @@ public class MixinChatListener {
return;
if (NCRConfig.getServerPreferences().hasModeCurrent(SigningMode.ON_DEMAND)) {
- ServerSafetyState.scheduleSigningAction(NCRClient::resendLastChatMessage);
+ String lastMessage = ServerSafetyState.getLastMessage();
+ ServerSafetyState.scheduleSigningAction(() -> NCRClient.resendChatMessage(lastMessage));
ServerSafetyState.setAllowChatSigning(true);
if (NCRConfig.getClient().hideSigningRequestMessage()) {
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatOptionsScreen.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatOptionsScreen.java
index f56105e..043f913 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatOptionsScreen.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatOptionsScreen.java
@@ -4,8 +4,6 @@ import java.util.Optional;
import org.spongepowered.asm.mixin.Mixin;
-import com.aizistral.nochatreports.common.config.NCRConfig;
-
import net.minecraft.client.Minecraft;
import net.minecraft.client.OptionInstance;
import net.minecraft.client.Options;
@@ -33,10 +31,8 @@ public abstract class MixinChatOptionsScreen extends OptionsSubScreen {
protected void init() {
super.init();
- if (NCRConfig.getClient().enableMod()) {
- Optional.ofNullable(this.list.findOption(Minecraft.getInstance().options.onlyShowSecureChat()))
- .ifPresent(option -> option.active = false);
- }
+ Optional.ofNullable(this.list.findOption(Minecraft.getInstance().options.onlyShowSecureChat()))
+ .ifPresent(option -> option.active = false);
}
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatScreen.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatScreen.java
index c367372..260d4b0 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatScreen.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinChatScreen.java
@@ -71,9 +71,11 @@ public abstract class MixinChatScreen extends Screen {
private void onHandleChatInput(String string, boolean bl, CallbackInfo info) {
if (NCRConfig.getServerPreferences().hasModeCurrent(SigningMode.ALWAYS) && !ServerSafetyState.allowChatSigning()) {
if (this.minecraft.getConnection().getConnection().isEncrypted()) {
- if (!this.normalizeChatMessage(string).isEmpty()) {
+ String message = this.normalizeChatMessage(string);
+
+ if (!message.isEmpty()) {
ServerSafetyState.updateCurrent(ServerSafetyLevel.INSECURE);
- ServerSafetyState.scheduleSigningAction(NCRClient::resendLastChatMessage);
+ ServerSafetyState.scheduleSigningAction(() -> NCRClient.resendChatMessage(message));
ServerSafetyState.setAllowChatSigning(true);
info.cancel();
}
@@ -91,7 +93,7 @@ public abstract class MixinChatScreen extends Screen {
private void onInit(CallbackInfo info) {
int buttonX = this.width - 23;
- if (NCRConfig.getClient().showServerSafety() && NCRConfig.getClient().enableMod()) {
+ if (NCRConfig.getClient().showServerSafety()) {
this.safetyStatusButton = new AdvancedImageButton(buttonX, this.height - 37, 20, 20,
SwitchableSprites.of(
GUIShenanigans.getSprites("safety_state/insecure"),
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinClientPacketListenerTick.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinClientPacketListenerTick.java
new file mode 100644
index 0000000..21f8068
--- /dev/null
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinClientPacketListenerTick.java
@@ -0,0 +1,20 @@
+package com.aizistral.nochatreports.common.mixins.client;
+
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
+
+import com.aizistral.nochatreports.common.core.ServerSafetyState;
+
+import net.minecraft.client.multiplayer.ClientPacketListener;
+
+@Mixin(ClientPacketListener.class)
+public class MixinClientPacketListenerTick {
+
+ @Inject(method = "tick()V", at = @At("HEAD"))
+ private void onTick(CallbackInfo info) {
+ ServerSafetyState.tickSigningActions((ClientPacketListener) (Object) this);
+ }
+
+}
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinConnectScreen.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinConnectScreen.java
index f938b73..e6b5cc0 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinConnectScreen.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinConnectScreen.java
@@ -29,9 +29,6 @@ public class MixinConnectScreen {
@Inject(method = "startConnecting", at = @At("HEAD"))
private static void onStartConnecting(Screen screen, Minecraft minecraft, ServerAddress serverAddress,
@Nullable ServerData serverData, boolean quickplay, @Nullable TransferState transferState, CallbackInfo info) {
- if (!NCRConfig.getClient().enableMod())
- return;
-
ServerSafetyState.reset();
ServerSafetyState.setLastServer(serverAddress);
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java
index d0ca0b9..f054b04 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java
@@ -10,7 +10,6 @@ import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import com.aizistral.nochatreports.common.config.NCRConfig;
-import com.aizistral.nochatreports.common.core.ServerSafetyState;
import com.aizistral.nochatreports.common.gui.AdvancedImageButton;
import com.aizistral.nochatreports.common.gui.AdvancedTooltip;
import com.aizistral.nochatreports.common.gui.GUIShenanigans;
@@ -19,12 +18,11 @@ import com.aizistral.nochatreports.common.gui.SwitchableSprites;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen;
import net.minecraft.locale.Language;
-import net.minecraft.network.chat.CommonComponents;
import net.minecraft.network.chat.Component;
-import net.minecraft.resources.Identifier;
+import net.minecraft.network.chat.MutableComponent;
/**
- * This is responsible for adding config reload button to server selection menu.
+ * This is responsible for adding mod toggle button to server selection menu.
* @author Aizistral
*/
@@ -32,9 +30,6 @@ import net.minecraft.resources.Identifier;
public abstract class MixinJoinMultiplayerScreen extends Screen {
@Shadow @Final
private HeaderAndFooterLayout layout;
- private static final Identifier RELOAD_TEXTURE = Identifier.fromNamespaceAndPath("nochatreports", "textures/gui/config_reload_button.png"),
- TOGGLE_TEXTURE = Identifier.fromNamespaceAndPath("nochatreports", "textures/gui/ncr_toggle_button.png");
- private static final Component RELOAD_TOOLTIP = Component.translatable("gui.nochatreports.reload_config_tooltip");
protected MixinJoinMultiplayerScreen() {
super(null);
@@ -47,37 +42,33 @@ public abstract class MixinJoinMultiplayerScreen extends Screen {
layoutSettings.paddingLeft(336);
});
- if (NCRConfig.getClient().showReloadButton()) {
- var button = new AdvancedImageButton(0, 0, 20, 20,
- SwitchableSprites.of(GUIShenanigans.getSprites("config_reload_button")),
- btn -> NCRConfig.load(), CommonComponents.EMPTY, this);
- button.setTooltip(new AdvancedTooltip(RELOAD_TOOLTIP).setMaxWidth(250));
- button.active = true;
- button.visible = true;
- ncrButtons.addChild(button);
- }
-
- if (NCRConfig.getClient().showNCRButton()) {
+ if (!NCRConfig.isModRunning() || NCRConfig.getClient().showNCRButton()) {
var button = new AdvancedImageButton(0, 0, 20, 20,
SwitchableSprites.of(
GUIShenanigans.getSprites("ncr_active_button"),
GUIShenanigans.getSprites("ncr_inactive_button")
- ).setIndex(NCRConfig.getClient().enableMod() ? 0 : 1),
+ ).setIndex(NCRConfig.getCommon().getSavedEnableMod() ? 0 : 1),
btn -> {
- NCRConfig.getClient().toggleMod();
- boolean enabled = NCRConfig.getClient().enableMod();
+ boolean enabled = !NCRConfig.getCommon().getSavedEnableMod();
+ NCRConfig.getCommon().setSavedEnableMod(enabled);
if (enabled) {
((AdvancedImageButton)btn).useSprites(0);
} else {
((AdvancedImageButton)btn).useSprites(1);
}
-
- ServerSafetyState.reset();
}, Component.translatable("gui.nochatreports.ncr_toggle"), this);
- button.setTooltip(new AdvancedTooltip(() -> Component.translatable("gui.nochatreports.ncr_toggle_tooltip",
- Language.getInstance().getOrDefault("gui.nochatreports.ncr_state_" + (NCRConfig.getClient()
- .enableMod() ? "on" : "off")))).setMaxWidth(250));
+ button.setTooltip(new AdvancedTooltip(() -> {
+ boolean enabled = NCRConfig.getCommon().getSavedEnableMod();
+ MutableComponent tooltip = Component.translatable("gui.nochatreports.ncr_toggle_tooltip",
+ Language.getInstance().getOrDefault("gui.nochatreports.ncr_state_" + (enabled ? "on" : "off")));
+
+ if (enabled != NCRConfig.isModRunning()) {
+ tooltip.append("\n").append(Component.translatable("gui.nochatreports.ncr_toggle_restart_pending"));
+ }
+
+ return tooltip;
+ }).setMaxWidth(250));
button.active = true;
button.visible = true;
ncrButtons.addChild(button);
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinMinecraft.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinMinecraft.java
index ca36de9..28d8ff2 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinMinecraft.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinMinecraft.java
@@ -29,9 +29,6 @@ public class MixinMinecraft {
@Inject(method = "getProfileKeyPairManager", at = @At("HEAD"), cancellable = true)
private void onGetProfileKeyPairManager(CallbackInfoReturnable<ProfileKeyPairManager> info) {
- if (!NCRConfig.getClient().enableMod())
- return;
-
if (!ServerSafetyState.allowChatSigning()) {
info.setReturnValue(ProfileKeyPairManager.EMPTY_KEY_MANAGER);
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinOptions.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinOptions.java
index e2ffe8c..6c0e205 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinOptions.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinOptions.java
@@ -6,7 +6,6 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
-import com.aizistral.nochatreports.common.config.NCRConfig;
import com.google.common.collect.ImmutableList;
import com.mojang.serialization.Codec;
@@ -26,9 +25,6 @@ public class MixinOptions {
@Inject(method = "onlyShowSecureChat", at = @At("RETURN"), cancellable = true)
private void onlyShowSecureChat(CallbackInfoReturnable<OptionInstance<Boolean>> cir) {
- if (!NCRConfig.getClient().enableMod())
- return;
-
if (this.alternativeOption == null) {
this.alternativeOption = new OptionInstance<>("options.onlyShowSecureChat",
OptionInstance.cachedConstantTooltip(SECURE_CHAT_TOOLTIP),
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinRealmsConnect.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinRealmsConnect.java
index a6f16ef..2a97ae3 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinRealmsConnect.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinRealmsConnect.java
@@ -5,7 +5,6 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
-import com.aizistral.nochatreports.common.config.NCRConfig;
import com.aizistral.nochatreports.common.core.ServerSafetyLevel;
import com.aizistral.nochatreports.common.core.ServerSafetyState;
import com.mojang.realmsclient.dto.RealmsServer;
@@ -23,9 +22,6 @@ public class MixinRealmsConnect {
@Inject(method = "connect", at = @At("HEAD"))
private void onConnect(RealmsServer realmsServer, ServerAddress serverAddress, CallbackInfo info) {
- if (!NCRConfig.getClient().enableMod())
- return;
-
ServerSafetyState.reset();
ServerSafetyState.updateCurrent(ServerSafetyLevel.REALMS);
ServerSafetyState.setAllowChatSigning(true);
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinServerStatusPinger$1.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinServerStatusPinger$1.java
index fac9b95..7563f2c 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinServerStatusPinger$1.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinServerStatusPinger$1.java
@@ -38,36 +38,53 @@ public abstract class MixinServerStatusPinger$1 {
private ServerDataExtension nochatreports$serverData;
@Inject(method = "<init>", at = @At("RETURN"))
- private void captureServerData(ServerStatusPinger serverStatusPinger, Connection connection, ServerData serverData, Runnable runnable, Runnable runnable2, InetSocketAddress inetSocketAddress, ServerAddress serverAddress, EventLoopGroupHolder eventLoopGroupHolder, CallbackInfo ci){
- this.nochatreports$serverData = (ServerDataExtension) serverData;
+ private void captureServerData(
+ ServerStatusPinger pinger,
+ Connection connection,
+ ServerData data,
+ Runnable runnableA,
+ Runnable runnableB,
+ InetSocketAddress socketAddress,
+ ServerAddress serverAddress,
+ EventLoopGroupHolder holder,
+ CallbackInfo info) {
+ try {
+ this.nochatreports$serverData = (ServerDataExtension) data;
+ } catch (Throwable ex) {
+ NCRCore.LOGGER.error("Failed to capture server data in MixinServerStatusPinger$1!", ex);
+ }
}
@Inject(method = "handleStatusResponse(Lnet/minecraft/network/protocol/status/ClientboundStatusResponsePacket;)V",
at = @At(value = "INVOKE", target = "Lnet/minecraft/network/protocol/status/ServerStatus;"
+ "description()Lnet/minecraft/network/chat/Component;"))
private void getNoChatReports(ClientboundStatusResponsePacket packet, CallbackInfo info) {
- ServerStatus status = packet.status();
- boolean preventsReports = ServerStatusCache.doesPreventReports();
+ try {
+ ServerStatus status = packet.status();
+ boolean preventsReports = ServerStatusCache.doesPreventReports();
- if (status.version().isPresent()) {
- ServerStatus.Version version = status.version().get();
+ if (status.version().isPresent()) {
+ ServerStatus.Version version = status.version().get();
- if (version.protocol() < 759 && version.protocol() > 0) {
- preventsReports = true;
+ if (version.protocol() < 759 && version.protocol() > 0) {
+ preventsReports = true;
+ }
}
- }
- if (this.nochatreports$serverData == null) {
- NCRCore.LOGGER.error("Failed to capture ServerData instance in MixinServerStatusPinger$1!");
- NCRCore.LOGGER.catching(new IllegalStateException());
- return;
- }
+ if (this.nochatreports$serverData == null) {
+ NCRCore.LOGGER.error("Failed to capture ServerData instance in MixinServerStatusPinger$1!");
+ NCRCore.LOGGER.catching(new IllegalStateException());
+ return;
+ }
- this.nochatreports$serverData.setPreventsChatReports(preventsReports);
+ this.nochatreports$serverData.setPreventsChatReports(preventsReports);
- if (NCRConfig.getCommon().enableDebugLog()) {
- NCRCore.LOGGER.info("Received status response packet from server, preventsChatReports: {}",
- preventsReports);
+ if (NCRConfig.getCommon().enableDebugLog()) {
+ NCRCore.LOGGER.info("Received status response packet from server, preventsChatReports: {}",
+ preventsReports);
+ }
+ } catch (Throwable ex) {
+ NCRCore.LOGGER.error("Failed to handle status response in MixinServerStatusPinger$1!", ex);
}
}
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java b/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java
index e63502d..a0e625d 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java
@@ -31,37 +31,46 @@ public class MixinJsonByteBufCodec {
@Inject(method = "encode(Lio/netty/buffer/ByteBuf;Lcom/google/gson/JsonElement;)V", at = @At("HEAD"), cancellable = true)
private void onEncode(ByteBuf buf, JsonElement element, CallbackInfo info) {
- if (!NCRConfig.getCommon().addQueryData() || !this.isServerStatusElement(element))
- return;
+ try {
+ if (!NCRConfig.getCommon().addQueryData() || !this.isServerStatusElement(element))
+ return;
- info.cancel();
+ info.cancel();
- if (NCRConfig.getCommon().enableDebugLog()) {
- NCRCore.LOGGER.info("Adding chat report prevention status to ServerStatus packet.");
- }
+ if (NCRConfig.getCommon().enableDebugLog()) {
+ NCRCore.LOGGER.info("Adding chat report prevention status to ServerStatus packet.");
+ }
- JsonObject object = element.getAsJsonObject();
- object.addProperty("preventsChatReports", true);
+ JsonObject object = element.getAsJsonObject();
+ object.addProperty("preventsChatReports", true);
- String string = GSON.toJson(object);
- Utf8String.write(buf, string, 32767);
+ String string = GSON.toJson(object);
+ Utf8String.write(buf, string, 32767);
+ } catch (Throwable ex) {
+ NCRCore.LOGGER.error("Failed to process server status encoding!", ex);
+ }
}
@Inject(method = "decode(Lio/netty/buffer/ByteBuf;)Lcom/google/gson/JsonElement;", at = @At("RETURN"), cancellable = true)
private void onDecode(ByteBuf buf, CallbackInfoReturnable<JsonElement> info) {
- JsonElement element = info.getReturnValue();
+ try {
+ ServerStatusCache.setPreventsReports(false);
+ JsonElement element = info.getReturnValue();
- if (!this.isServerStatusElement(element))
- return;
+ if (!element.isJsonObject())
+ return;
- JsonObject object = element.getAsJsonObject();
- boolean preventsReports = object.has("preventsChatReports") && object.get("preventsChatReports").getAsBoolean();
+ JsonObject object = element.getAsJsonObject();
+ boolean preventsReports = object.has("preventsChatReports") && object.get("preventsChatReports").getAsBoolean();
- if (NCRConfig.getCommon().enableDebugLog()) {
- NCRCore.LOGGER.info("Received chat report prevention status from ServerStatus packet: " + preventsReports);
- }
+ if (NCRConfig.getCommon().enableDebugLog()) {
+ NCRCore.LOGGER.info("Received chat report prevention status from ServerStatus packet: " + preventsReports);
+ }
- ServerStatusCache.setPreventsReports(preventsReports);
+ ServerStatusCache.setPreventsReports(preventsReports);
+ } catch (Throwable ex) {
+ NCRCore.LOGGER.error("Failed to process server status decoding!", ex);
+ }
}
private boolean isServerStatusElement(JsonElement element) {
diff --git a/src/main/java/com/aizistral/nochatreports/common/platform/PlatformProvider.java b/src/main/java/com/aizistral/nochatreports/common/platform/PlatformProvider.java
index bdeee8d..6bdf5a5 100644
--- a/src/main/java/com/aizistral/nochatreports/common/platform/PlatformProvider.java
+++ b/src/main/java/com/aizistral/nochatreports/common/platform/PlatformProvider.java
@@ -13,6 +13,4 @@ public interface PlatformProvider {
public Path getMinecraftDir();
- public Path getConfigDir();
-
}
diff --git a/src/main/java/com/aizistral/nochatreports/fabric/NoChatReports.java b/src/main/java/com/aizistral/nochatreports/fabric/NoChatReports.java
index 4dcb517..8339bed 100644
--- a/src/main/java/com/aizistral/nochatreports/fabric/NoChatReports.java
+++ b/src/main/java/com/aizistral/nochatreports/fabric/NoChatReports.java
@@ -32,9 +32,4 @@ public class NoChatReports implements ModInitializer, PlatformProvider {
return FabricLoader.getInstance().getGameDir();
}
- @Override
- public Path getConfigDir() {
- return FabricLoader.getInstance().getConfigDir();
- }
-
}
diff --git a/src/main/java/com/aizistral/nochatreports/fabric/NoChatReportsClient.java b/src/main/java/com/aizistral/nochatreports/fabric/NoChatReportsClient.java
index 2ae4236..b84adf5 100644
--- a/src/main/java/com/aizistral/nochatreports/fabric/NoChatReportsClient.java
+++ b/src/main/java/com/aizistral/nochatreports/fabric/NoChatReportsClient.java
@@ -1,5 +1,6 @@
package com.aizistral.nochatreports.fabric;
+import com.aizistral.nochatreports.common.config.NCRConfig;
import com.aizistral.nochatreports.common.platform.events.ClientEvents;
import net.fabricmc.api.ClientModInitializer;
@@ -12,6 +13,9 @@ public class NoChatReportsClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
+ if (!NCRConfig.isModRunning())
+ return;
+
ClientPlayConnectionEvents.JOIN.register((handler, sender, client) ->
ClientEvents.PLAY_READY.invoker().handle(handler, client));
diff --git a/src/main/java/com/aizistral/nochatreports/loader/LoaderPaths.java b/src/main/java/com/aizistral/nochatreports/loader/LoaderPaths.java
new file mode 100644
index 0000000..762ab74
--- /dev/null
+++ b/src/main/java/com/aizistral/nochatreports/loader/LoaderPaths.java
@@ -0,0 +1,17 @@
+package com.aizistral.nochatreports.loader;
+
+import java.nio.file.Path;
+
+import net.fabricmc.loader.api.FabricLoader;
+
+public final class LoaderPaths {
+
+ private LoaderPaths() {
+ throw new IllegalStateException("Can't touch this");
+ }
+
+ public static Path getConfigDir() {
+ return FabricLoader.getInstance().getConfigDir();
+ }
+
+}
diff --git a/src/main/resources/assets/nochatreports/lang/ca_es.json b/src/main/resources/assets/nochatreports/lang/ca_es.json
index f2b0410..7e8a3e3 100644
--- a/src/main/resources/assets/nochatreports/lang/ca_es.json
+++ b/src/main/resources/assets/nochatreports/lang/ca_es.json
@@ -8,6 +8,5 @@
"gui.nochatreports.safety_status.undefined": "No Chat Reports no ha pogut avaluar la seguretat d'aquest servidor. Això no deuria haver passat, si us plau informi d'aquest error al desenvolupador d'aquest mod.",
"gui.nochatreports.unsafe_server.header": "Precaució: Servidor insegur",
"gui.nochatreports.unsafe_server.contents": "Aquest servidor requereix que tots els missatges tinguin signatura, això significa que poden ser reportats a Mojang. Això probablement significa que el propietari del servidor ha mantingut 'enforce-secure-profile' habilitat en server.properties, que és el valor per defecte des de 1.19.1. Pots escollir jugar de totes formes, però No Chat Reports podrà protegir-te.",
- "gui.nochatreports.unsafe_server.check": "No tornar a mostrar per aquest servidor.",
- "gui.nochatreports.reload_config_tooltip": "Recarregar la configuració de No Chat Reports. Utilitzar amb compte."
+ "gui.nochatreports.unsafe_server.check": "No tornar a mostrar per aquest servidor."
}
diff --git a/src/main/resources/assets/nochatreports/lang/cs_cz.json b/src/main/resources/assets/nochatreports/lang/cs_cz.json
index e21c7be..f5559f9 100644
--- a/src/main/resources/assets/nochatreports/lang/cs_cz.json
+++ b/src/main/resources/assets/nochatreports/lang/cs_cz.json
@@ -8,6 +8,5 @@
"gui.nochatreports.safety_status.undefined": "No Chat Reports nemůže vyhodnotit bezpečnost tohoto serveru. Toto by se nikdy nemělo stát, prosím nahlašte to jako chybu vývojáři modu.",
"gui.nochatreports.unsafe_server.header": "Pozor: Nezabezpečený Server",
"gui.nochatreports.unsafe_server.contents": "Tento server vyžaduje, aby všechny zprávy v chatu byly podepsané, což znamená, že je lze nahlásit Mojangu. To pravděpodobně znamená, že majitel serveru ponechal volbu 'enforce-secure-profile' povolenou v server.properties, což je výchozí nastavení od verze 1.19.1. Můžete se rozhodnout hrát i tak, ale No Chat Reports vás nebude moci ochránit.",
- "gui.nochatreports.unsafe_server.check": "Znovu neukazovat pro tento server",
- "gui.nochatreports.reload_config_tooltip": "Znovu načíst No Chat Reports nastavení. Používejte opatrně."
+ "gui.nochatreports.unsafe_server.check": "Znovu neukazovat pro tento server"
}
diff --git a/src/main/resources/assets/nochatreports/lang/da_dk.json b/src/main/resources/assets/nochatreports/lang/da_dk.json
index 520171f..cddeee4 100644
--- a/src/main/resources/assets/nochatreports/lang/da_dk.json
+++ b/src/main/resources/assets/nochatreports/lang/da_dk.json
@@ -9,6 +9,5 @@
"gui.nochatreports.safety_status.undefined": "No Chat Reports kunne ikke verificere sikkerheden af denne server. Dette burde aldrig ske, venligst rapporter det som en fejl til mod udvikleren.",
"gui.nochatreports.unsafe_server.header": "Advarsel: Usikker Server",
"gui.nochatreports.unsafe_server.contents": "Denne server kræver alle chat beskeder bliver signeret, hvilket betyder de kan blive rapporteret til Mojang, hvilket kan resultere i en bandlysning fra alle multiplayer servere. Dette betyder nok at server ejeren har beholdt \"enforce-secure-profile\" slået til i server.properties, hvilket er standarden siden 1.19.1. Du kan stadig vælge at spille, men No Chat Reports vil ikke være i stand til at beskytte dig.",
- "gui.nochatreports.unsafe_server.check": "Vis ikke igen for denne server",
- "gui.nochatreports.reload_config_tooltip": "Genindlæs No Chat Reports' konfiguration. Brug med omtanke."
+ "gui.nochatreports.unsafe_server.check": "Vis ikke igen for denne server"
} \ No newline at end of file
diff --git a/src/main/resources/assets/nochatreports/lang/de_de.json b/src/main/resources/assets/nochatreports/lang/de_de.json
index 2372380..6c61c0f 100644
--- a/src/main/resources/assets/nochatreports/lang/de_de.json
+++ b/src/main/resources/assets/nochatreports/lang/de_de.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "Nachrichten-Signaturen sind für diese Sitzung deaktiviert.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Nachrichten-Signaturen sind für diese Sitzung deaktiviert, werden jedoch aktiviert, sobald du eine Nachricht schickst.",
"gui.nochatreports.signing_status.disabled_offline": "Nachrichten-Signaturen sind deaktiviert, da dies ein Offline-Server ist.",
- "gui.nochatreports.reload_config_tooltip": "No Chat Reports Konfigurationsdatei neu laden. Nutze dies mit Bedacht.",
"gui.nochatreports.verified_server": "§a§lSicherer Server§r\nDieser Server hat No Chat Reports installiert oder verhindert das Melden von Nachrichten auf eine andere bekannte Weise. Du kannst dort sicher chatten.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDe- oder aktiviere die meisten der clientseitigen Funktionen dieser Mod. Dies kann notwendig sein, um sich mit einigen Paper/Velocity-Server zu verbinden, da diese dafür bekannt sind, Probleme mit NCR zu verursachen.\nBestimmte, nicht verbindungsbezogene Funktionen wie Verschlüsselung, Chat Trust Status Anpassungen und das Entfernen von Vanillas \"Chatnachrichten können nicht verifiziert werden\"-Meldung funktionieren weiterhin, können aber in der Konfigurationsdatei individuell deaktiviert werden.",
"gui.nochatreports.ncr_state_on": "§a§lAktiviert§r",
"gui.nochatreports.ncr_state_off": "§c§lDeaktiviert§r",
"nochatreports.connect.nokey_rejected": "Der Server hat die Verbindung ohne einen Chat-Signierungs-Schlüssel abgelehnt.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Client",
"option.NoChatReports.enableMod": "Mod aktivieren",
- "option.NoChatReports.enableMod.tooltip": "Aktiviert den Großteil der clientseitigen Funktionen der Mod. Wenn du dies umstellst, während du auf einem Server bist, musst du ihm erneut beitreten.",
"option.NoChatReports.showNCRButton": "NCR-Button anzeigen",
- "option.NoChatReports.showNCRButton.tooltip": "Fügt einen Button zum Mehrspieler-Menü hinzu, der die meisten der clientseitigen Funktionen der Mod de- und aktiviert.",
"option.NoChatReports.defaultSigningMode": "Standard Signaturmodus",
"option.NoChatReports.defaultSigningMode.tooltip": "Legt den Standard Signaturmodus für Server, die Chat-Signierung erzwingen oder erlauben fest.",
- "option.NoChatReports.showReloadButton": "Neulade-Button anzeigen",
- "option.NoChatReports.showReloadButton.tooltip": "Fügt einen Button zum Neu laden der Konfigurationsdatei zum Mehrspieler-Menü hinzu.",
"option.NoChatReports.verifiedIconEnabled": "Verifiziert-Icon anzeigen",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Erlaubt der Mod, ein spezielles Icon (Symbol) für Server, die No Chat Reports oder andere Anti-Chat-Reporting Software installiert haben, im Mehrspieler-Menü anzuzeigen.",
"option.NoChatReports.verifiedIconOffsetX": "Verifiziert-Icon X-Offset",
diff --git a/src/main/resources/assets/nochatreports/lang/en_pt.json b/src/main/resources/assets/nochatreports/lang/en_pt.json
index c8bad35..f239adf 100644
--- a/src/main/resources/assets/nochatreports/lang/en_pt.json
+++ b/src/main/resources/assets/nochatreports/lang/en_pt.json
@@ -11,9 +11,7 @@
"gui.nochatreports.unsafe_server.header": "Caution: Unsafe Server",
"gui.nochatreports.unsafe_server.contents": "This here server requires all chat messages to be signed, which means they can be reported to Mojang, which may result in a ban from all multiplayer servers. This here likely means that there the server owner kept \"enforce-secure-profile\" enabled in the server.properties, which be the default since 1.19.1. Ye can choose to play anyway, but No Chat Reports will not be able to protect ye.",
"gui.nochatreports.unsafe_server.check": "Do not show again fer this here server",
- "gui.nochatreports.reload_config_tooltip": "Reload No Chat Reports config. Use carefully.",
"gui.nochatreports.verified_server": "§a§lSafe Server§r\nWe could verify that there this here server 'as No Chat Reports installed, or prevents chat reports in some other known way. Ye can chat there safely.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDisable or enable most o' the mod's client-sided functionality. Ye may 'ave to do this here to join some Paper/Velocity servers, as they be known fer causin' issues with NCR.\nCertain networking-unrelated things, such as chat trust status tweaks an' removal o' vanilla's \"Chat messages can't be verified\" toast will still work; they can be disabled in config individually.",
"gui.nochatreports.ncr_state_on": "§a§lEnabled§r",
"gui.nochatreports.ncr_state_off": "§c§lDisabled§r",
@@ -49,14 +47,10 @@
"option.NoChatReports.enableDebugLog.tooltip": "Enables loggin' o' certain debug information. This here be generally useless fer non-developers.",
"option.NoChatReports.disableTelemetry": "Disable telemetry",
"option.NoChatReports.disableTelemetry.tooltip": "Allows the mod to disable built-in telemetry, similarrr to 'ow No Telemetry does.",
- "option.NoChatReports.showReloadButton": "Show reload button",
- "option.NoChatReports.showReloadButton.tooltip": "Adds a button fer config reloadin' to multiplayer menu.",
"option.NoChatReports.whitelistAllServers": "Whitelist all servers",
"option.NoChatReports.whitelistAllServers.tooltip": "Makes the mod behave as if all servers was added to §oWhitelisted Servers§r list.",
"option.NoChatReports.showNCRButton": "Show NCR button",
- "option.NoChatReports.showNCRButton.tooltip": "Adds a button that there toggles most o' the mod's client-sided functionality to multiplayer menu.",
"option.NoChatReports.enableMod": "Enable mod",
- "option.NoChatReports.enableMod.tooltip": "Responsible fer enablin' most o' the mod's client-sided functionality, see option above.",
"configuration.NoChatReports.category.whitelistedServers": "Whitelisted Servers",
diff --git a/src/main/resources/assets/nochatreports/lang/en_us.json b/src/main/resources/assets/nochatreports/lang/en_us.json
index 48ea8db..2a8f4a9 100644
--- a/src/main/resources/assets/nochatreports/lang/en_us.json
+++ b/src/main/resources/assets/nochatreports/lang/en_us.json
@@ -20,9 +20,9 @@
"gui.nochatreports.signing_status.disabled": "Message signing is disabled for this session.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Message signing is disabled for this session, but it will be enabled once you send any message.",
"gui.nochatreports.signing_status.disabled_offline": "Message signing is disabled since this is an offline server.",
- "gui.nochatreports.reload_config_tooltip": "Reload No Chat Reports config. Use carefully.",
"gui.nochatreports.verified_server": "§a§lSafe Server§r\nWe could verify that this server has No Chat Reports installed, or prevents chat reports in some other known way. You can chat safely there.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDisable or enable most of the mod's client-sided functionality. You may have to do this to join some Paper/Velocity servers, as they are known to cause issues with NCR.\nCertain networking-unrelated things, such as chat trust status tweaks and removal of vanilla's \"Chat messages can't be verified\" toast will still work; they can be disabled in config individually.",
+ "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nCompletely enables or disables the mod. Takes effect only after restarting the game.",
+ "gui.nochatreports.ncr_toggle_restart_pending": "§6Restart pending: restart the game to apply this change.§r",
"gui.nochatreports.ncr_state_on": "§a§lEnabled§r",
"gui.nochatreports.ncr_state_off": "§c§lDisabled§r",
"nochatreports.connect.nokey_rejected": "The server rejected the connection without a chat signing key.",
@@ -51,15 +51,14 @@
"gui.nochatreports.signing_mode.on_demand.tooltip": "Similar to prompt mode, but instead of showing a pop-up screen, signing will just be enabled automatically as soon as the server demands it.",
"configuration.NoChatReports.config": "No Chat Reports",
+ "configuration.NoChatReports.category.common": "Common",
"configuration.NoChatReports.category.client": "Client",
"option.NoChatReports.enableMod": "Enable mod",
- "option.NoChatReports.enableMod.tooltip": "Responsible for enabling most of the mod's client-sided functionality. Will require re-joining the server to take effect if toggled mid-session.",
+ "option.NoChatReports.enableMod.tooltip": "Completely enables or disables the mod. Takes effect only after restarting the game.",
"option.NoChatReports.showNCRButton": "Show NCR button",
- "option.NoChatReports.showNCRButton.tooltip": "Adds a button that toggles most of the mod's client-sided functionality to the multiplayer menu.",
+ "option.NoChatReports.showNCRButton.tooltip": "Adds a button that completely enables or disables the mod to the multiplayer menu. The button is always shown while the mod is disabled.",
"option.NoChatReports.defaultSigningMode": "Default signing mode",
"option.NoChatReports.defaultSigningMode.tooltip": "Sets the signing mode default for servers that force or allow chat signing.",
- "option.NoChatReports.showReloadButton": "Show reload button",
- "option.NoChatReports.showReloadButton.tooltip": "Adds a button for config reloading to the multiplayer menu.",
"option.NoChatReports.verifiedIconEnabled": "Verified icon enabled",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Allows the mod to display special icon in the multiplayer menu for servers that have No Chat Reports or some other anti-chat-reporting measures installed.",
"option.NoChatReports.verifiedIconOffsetX": "Verified icon X-offset",
diff --git a/src/main/resources/assets/nochatreports/lang/es_ar.json b/src/main/resources/assets/nochatreports/lang/es_ar.json
index 79bce5a..5654e6a 100644
--- a/src/main/resources/assets/nochatreports/lang/es_ar.json
+++ b/src/main/resources/assets/nochatreports/lang/es_ar.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "El firmado de mensajes está deshabilitado en esta sesión.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "El firmado está desactivado, pero se activará automáticamente cuando envíes un mensaje.",
"gui.nochatreports.signing_status.disabled_offline": "El firmado está desactivado porque este es un servidor offline.",
- "gui.nochatreports.reload_config_tooltip": "Recargar configuración de No Chat Reports. Usar con cuidado.",
"gui.nochatreports.verified_server": "§a§lServidor seguro§r\nSe pudo verificar que este servidor tiene No Chat Reports instalado o que evita los reportes de otra forma conocida. Podés chatear con seguridad.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nActiva o desactiva la mayoría de las funciones del mod en el cliente. Podrías necesitar hacerlo para unirte a servidores Paper/Velocity, ya que a veces causan problemas con NCR.\nAlgunas funciones no relacionadas a red, como la encriptación o el estado de confianza del chat, seguirán activas y se pueden desactivar individualmente en la configuración.",
"gui.nochatreports.ncr_state_on": "§a§lActivado§r",
"gui.nochatreports.ncr_state_off": "§c§lDesactivado§r",
"nochatreports.connect.nokey_rejected": "El servidor rechazó la conexión por falta de clave de firmado.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Cliente",
"option.NoChatReports.enableMod": "Habilitar mod",
- "option.NoChatReports.enableMod.tooltip": "Permite la mayoría de las funciones del mod del lado del cliente. Si se cambia durante una sesión, requiere volver a entrar al servidor para que tenga efecto.",
"option.NoChatReports.showNCRButton": "Mostrar botón de NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Agrega un botón en el menú multijugador que activa o desactiva la mayoría de las funciones del mod del lado del cliente.",
"option.NoChatReports.defaultSigningMode": "Modo de firma predeterminado",
"option.NoChatReports.defaultSigningMode.tooltip": "Establece el modo de firma por defecto para servidores que permiten o exigen la firma de mensajes.",
- "option.NoChatReports.showReloadButton": "Mostrar botón de recarga",
- "option.NoChatReports.showReloadButton.tooltip": "Agrega un botón en el menú multijugador para recargar la configuración.",
"option.NoChatReports.verifiedIconEnabled": "Ícono de verificado habilitado",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Permite que el mod muestre un ícono especial en el menú multijugador para servidores que tengan No Chat Reports u otras medidas contra reportes de chat.",
"option.NoChatReports.verifiedIconOffsetX": "Desplazamiento en X del ícono de verificado",
diff --git a/src/main/resources/assets/nochatreports/lang/es_es.json b/src/main/resources/assets/nochatreports/lang/es_es.json
index be7148a..cd55e8b 100644
--- a/src/main/resources/assets/nochatreports/lang/es_es.json
+++ b/src/main/resources/assets/nochatreports/lang/es_es.json
@@ -11,7 +11,6 @@
"gui.nochatreports.unsafe_server.header": "Precaución: Servidor inseguro",
"gui.nochatreports.unsafe_server.contents": "Este servidor requiere que todos los mensajes de chat estén firmados, lo que significa que pueden ser reportados a Mojang, lo que podría resultar en un ban de todos los servidores multijugador. Esto probablemente significa que el dueño del servidor mantuvo \"enforce-secure-profile\" habilitado en las propiedades del servidor (server.properties), el cual es el valor por defecto desde 1.19.1. Puedes elegir jugar de todas formas, pero No Chat Reports no será capaz de protegerte.",
"gui.nochatreports.unsafe_server.check": "No mostrar de vuelta para este servidor.",
- "gui.nochatreports.reload_config_tooltip": "Recargar la configuración de No Chat Reports. Usar con cuidado.",
"gui.nochatreports.verified_server": "§a§lServidor Seguro§r\nPudimos verificar que este servidor tiene No Chat Reports instalado, o previene reportes de chat de alguna otra manera conocida. Puedes chatear con seguridad",
"configuration.NoChatReports.config": "No Chat Reports",
@@ -46,8 +45,6 @@
"option.NoChatReports.enableDebugLog.tooltip": "Habilita el registro de información de depuración. Esto es generalmente inútil para no desarrolladores.",
"option.NoChatReports.disableTelemetry": "Deshabilitar telemetría",
"option.NoChatReports.disableTelemetry.tooltip": "Permite que el mod deshabilite la telemetría incorporada, similar a como No Telemetry lo hace.",
- "option.NoChatReports.showReloadButton": "Mostrar botón de recarga",
- "option.NoChatReports.showReloadButton.tooltip": "Añade un botón para recargar la configuración en el menu de multijugador.",
"option.NoChatReports.whitelistAllServers": "Permitir todos los servidores",
"option.NoChatReports.whitelistAllServers.tooltip": "Hace que el mod actúe como si todos los servidores fueran añadidos a la lista de §oServidores Permitidos§r.",
diff --git a/src/main/resources/assets/nochatreports/lang/es_mx.json b/src/main/resources/assets/nochatreports/lang/es_mx.json
index ae2d97b..846aff4 100644
--- a/src/main/resources/assets/nochatreports/lang/es_mx.json
+++ b/src/main/resources/assets/nochatreports/lang/es_mx.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "La firma de mensajes está desactivada para esta sesión.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "La firma de mensajes está desactivada para esta sesión, pero se habilitará una vez que envíes cualquier mensaje.",
"gui.nochatreports.signing_status.disabled_offline": "La firma de mensajes está desactivada ya que este es un servidor sin conexión.",
- "gui.nochatreports.reload_config_tooltip": "Recargar la configuración de No Chat Reports. Úsalo con cuidado.",
"gui.nochatreports.verified_server": "§a§lServidor seguro§r\nHemos verificado que este servidor tiene instalado No Chat Reports, o evita los informes de chat de alguna otra manera conocida. Puedes chatear de forma segura allí.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDesactiva o activa la mayoría de las funcionalidades del mod en el lado del cliente. Es posible que debas hacer esto para unirte a algunos servidores de Paper/Velocity, ya que se sabe que causan problemas con NCR.\nCiertas cosas no relacionadas con la red, como el cifrado, los ajustes de confianza del chat y la eliminación del mensaje emergente \"Los mensajes de chat no se pueden verificar\" de vanilla, seguirán funcionando; se pueden desactivar individualmente en la configuración.",
"gui.nochatreports.ncr_state_on": "§a§lHabilitado§r",
"gui.nochatreports.ncr_state_off": "§c§lDeshabilitado§r",
"nochatreports.connect.nokey_rejected": "El servidor rechazó la conexión sin una clave de firma de chat.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Cliente",
"option.NoChatReports.enableMod": "Habilitar mod",
- "option.NoChatReports.enableMod.tooltip": "Permite habilitar la funcionalidad del mod en el lado del cliente. Será necesario volver a unirse al servidor para que tenga efecto si se cambia durante la sesión.",
"option.NoChatReports.showNCRButton": "Mostrar botón NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Agrega un botón que activa/desactiva la funcionalidad del mod en el lado del cliente en el menú multijugador.",
"option.NoChatReports.defaultSigningMode": "Modo de firma predeterminado",
"option.NoChatReports.defaultSigningMode.tooltip": "Establece el modo de firma predeterminado para los servidores que exigen o permiten la firma de chat.",
- "option.NoChatReports.showReloadButton": "Mostrar botón de recarga",
- "option.NoChatReports.showReloadButton.tooltip": "Agrega un botón para recargar la configuración en el menú multijugador.",
"option.NoChatReports.verifiedIconEnabled": "Icono de verificación habilitado",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Permite que el mod muestre un icono especial en el menú multijugador para los servidores que tienen instalado No Chat Reports u otras medidas contra los informes de chat.",
"option.NoChatReports.verifiedIconOffsetX": "Desplazamiento X del icono de verificación",
diff --git a/src/main/resources/assets/nochatreports/lang/et_ee.json b/src/main/resources/assets/nochatreports/lang/et_ee.json
index b15a6ee..14fe429 100644
--- a/src/main/resources/assets/nochatreports/lang/et_ee.json
+++ b/src/main/resources/assets/nochatreports/lang/et_ee.json
@@ -18,9 +18,7 @@
"gui.nochatreports.signing_status.disabled": "Sõnumite signeerimine on selle seansi jaoks keelatud.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Sõnumite signeerimine on selle seansi jaoks keelatud, kuid lubatakse mistahes sõnumi saatmisel.",
"gui.nochatreports.signing_status.disabled_offline": "Sõnumite signeerimine on keelatud, kuna tegu on võrguta serveriga.",
- "gui.nochatreports.reload_config_tooltip": "Laadi No Chat Reports seadistus uuesti. Kasuta ettevaatlikult.",
"gui.nochatreports.verified_server": "§a§lTurvaline server§r\nKinnitasime, et serverile on paigaldatud mod No Chat Reports või see piirab sõnumitest teatamist mõnel muul teadaoleval viisil. Sa saad turvaliselt vestelda.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nKeela või luba enamus modi kliendipoolsest funktsionaalsusest. See võib olla vajalik teatud Paper/Velocity serveritega ühendumiseks, kuna need on teadaolevalt NCRiga probleeme põhjustanud.\nTeatud võrguga mitteseonduvad asjad, nagu serveri turvataseme kuvamine ning vanilli \"Vestlussõnumeid ei saa kinnitada\" hüpiku eemaldus töötavad siiski; neid saab seadistustes individuaalselt lülitada.",
"gui.nochatreports.ncr_state_on": "§a§llubatud§r",
"gui.nochatreports.ncr_state_off": "§c§lkeelatud§r",
"nochatreports.connect.nokey_rejected": "Server lükkas vestluse signeerimise võtmeta ühenduse tagasi.",
@@ -51,13 +49,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Klient",
"option.NoChatReports.enableMod": "Mod lubatud",
- "option.NoChatReports.enableMod.tooltip": "Vastutab enamiku modi kliendipoolse funktsionaalsuse eest. Seansi ajal ümber lülitades on muudatuste rakendamiseks vajalik serveriga taasliitumine.",
"option.NoChatReports.showNCRButton": "Kuva NCRi nupp",
- "option.NoChatReports.showNCRButton.tooltip": "Lisab mitmikmängumenüüsse nupu, mis lülitab enamikku modi kliendipoolsest funktsionaalsusest.",
"option.NoChatReports.defaultSigningMode": "Vaikimisi signeerimisrežiim",
"option.NoChatReports.defaultSigningMode.tooltip": "Määrab signeerimisrežiimi vaikeväärtuse serveritele, mis nõuavad või lubavad vestluse signeerimist.",
- "option.NoChatReports.showReloadButton": "Kuva taaslaadimise nupp",
- "option.NoChatReports.showReloadButton.tooltip": "Lisab mitmikmängu serverite loendisse seadistuste taaslaadimise nupu.",
"option.NoChatReports.verifiedIconEnabled": "Kuva kinnitatuse ikoon",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Lubab modil kuvada mitmikmängumenüüs serverite juures ikooni, kui neil on No Chat Reports või mõni muu vestlusest teatamise vastane mehhanism paigaldatud.",
"option.NoChatReports.verifiedIconOffsetX": "Kinnitatuse ikooni X-nihe",
diff --git a/src/main/resources/assets/nochatreports/lang/fi_fi.json b/src/main/resources/assets/nochatreports/lang/fi_fi.json
index 237f9ec..9aefecf 100644
--- a/src/main/resources/assets/nochatreports/lang/fi_fi.json
+++ b/src/main/resources/assets/nochatreports/lang/fi_fi.json
@@ -26,9 +26,7 @@
"gui.nochatreports.signing_status.disabled": "Viestien sähköinen allekirjoittaminen otettiin pois käytöstä täksi istunnoksi.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Viestien sähköinen allekirjoittaminen poistettiin käytöstä täksi istunnoksi, mutta otetaan käyttöön, kun lähetät viestin.",
"gui.nochatreports.signing_status.disabled_offline": "Viestien sähköinen allekirjoittaminen on pois käytöstä, koska palvelin ei ole verkossa.",
- "gui.nochatreports.reload_config_tooltip": "Lataa uudelleen No Chat Reportsin määritykset. Käytä harkiten.",
"gui.nochatreports.verified_server": "§a§lTurvallinen palvelin\nPystymme varmistamaan, että tällä palvelimella on No Chat Reports tai se estää viestien ilmiannon muulla tunnetulla tavalla. Voit keskustella siellä turvallisesti.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports§r %1$s\nLaita suurin osa modin asiakasohjelman puoleisesta toiminnallisuudesta käyttöön tai pois käytöstä. Saatat joutua tekemään tämän liittyäksesi joillekin Paper- tai Velocity-palvelimille, sillä niiden tiedetään aiheuttavan ongelmia NCR:n kanssa.\nJotkin verkkotyöskentelyyn liittymättömät asiat, kuten salaus, keskustelun luotettavuustilan muokkaukset sekä \"Keskusteluviestejä ei voida todentaa\"-ilmoituksen poistaminen toimivat silti; ne voidaan laittaa pois määrityksistä yksitellen.",
"gui.nochatreports.ncr_state_on": "§a§lKäytössä§r",
"gui.nochatreports.ncr_state_off": "§c§lPois käytöstä§r",
"nochatreports.connect.nokey_rejected": "Palvelin kieltäytyi yhteydestä ilman keskustelun sähköistä allekirjoitusavainta.",
@@ -60,13 +58,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Asiakasohjelma",
"option.NoChatReports.enableMod": "Modin käyttö",
- "option.NoChatReports.enableMod.tooltip": "Pitää käytössä suurimman osan modin asiakasohjelman puoleisesta toiminnallisuudesta. Vaatii palvelimelle uudelleen liittymistä muutosten voimaan astumiseksi kesken istunnon.",
"option.NoChatReports.showNCRButton": "Näytä NCR-painike",
- "option.NoChatReports.showNCRButton.tooltip": "Lisää moninpelivalikkoon painikkeen, jolla voidaan valita suurin osa modin asiakasohjelman puoleisesta toiminnallisuudesta päälle ja pois.",
"option.NoChatReports.defaultSigningMode": "Sähköisen allekirjoittamisen oletusvalinta",
"option.NoChatReports.defaultSigningMode.tooltip": "Asettaa oletusvalinnan sähköisestä allekirjoittamisesta palvelimilla, jotka pakottavat tai sallivat sähköisen allekirjoittamisen.",
- "option.NoChatReports.showReloadButton": "Näytä uudelleenlatauspainike",
- "option.NoChatReports.showReloadButton.tooltip": "Lisää moninpelivalikkoon painikkeen määritysten uudelleenlataamiselle.",
"option.NoChatReports.verifiedIconEnabled": "Vahvistuskuvake päällä",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Erityinen kuvake näytetään moninpelivalikossa palvelimilla, joilla on No Chat Reports tai joka muuten ehkäisee ilmiantojen tekemistä.",
"option.NoChatReports.verifiedIconOffsetX": "Vahvistuskuvakkeen siirto X-akselilla",
diff --git a/src/main/resources/assets/nochatreports/lang/fr_fr.json b/src/main/resources/assets/nochatreports/lang/fr_fr.json
index c719efc..25af20b 100644
--- a/src/main/resources/assets/nochatreports/lang/fr_fr.json
+++ b/src/main/resources/assets/nochatreports/lang/fr_fr.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "La signature des messages est désactivée pour cette session.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "La signature des messages est désactivée pour cette session, mais elle sera activée lorsque vous enverrez un message.",
"gui.nochatreports.signing_status.disabled_offline": "La signature des messages est désactivée car il s'agit d'un serveur hors ligne.",
- "gui.nochatreports.reload_config_tooltip": "Recharger la configuration No Chat Reports. A utiliser avec précaution.",
"gui.nochatreports.verified_server": "§a§lServeur sécurisé§r\nCe serveur utilise No Chat Reports, ou empêche vos messages d'être signalés d'une quelconque manière. Vous pouvez discuter en toute sécurité.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDésactive ou active la plupart des fonctionnalités du mod côté client. Vous devrez peut-être le faire pour rejoindre certains serveurs Paper/Velocity, car ils sont connus pour causer des problèmes avec NCR. \nCertaines choses non liées au réseau, comme le chiffrement, l'indice de confiance du chat et la suppression du message vanilla's. \"Les messages du chat ne peuvent pas être vérifiés\" fonctionneront toujours; ils peuvent être désactivés dans la configuration individuellement.",
"gui.nochatreports.ncr_state_on": "§a§lActivé§r",
"gui.nochatreports.ncr_state_off": "§c§lDésactivé§r",
"nochatreports.connect.nokey_rejected": "Le serveur a rejeté la connexion sans clé de signature du chat.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Client",
"option.NoChatReports.enableMod": "Activer le mod",
- "option.NoChatReports.enableMod.tooltip": "Permet d'activer la plupart des fonctionnalités du mod côté client. Si, activé en cours de session, il faudra se reconnecter au serveur pour prendre effet.",
"option.NoChatReports.showNCRButton": "Afficher le bouton NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Ajoute un bouton qui permet d'activer la plupart des fonctionnalités côté client du mod dans le menu multijoueur.",
"option.NoChatReports.defaultSigningMode": "Mode de signature par défaut",
"option.NoChatReports.defaultSigningMode.tooltip": "Définit le mode de signature par défaut pour les serveurs qui forcent ou autorisent la signature des chats.",
- "option.NoChatReports.showReloadButton": "Afficher le bouton de recharge",
- "option.NoChatReports.showReloadButton.tooltip": "Ajout d'un bouton pour le rechargement de la configuration dans le menu multijoueur.",
"option.NoChatReports.verifiedIconEnabled": "Activation de l'icône vérifiée",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Permet au mod d'afficher une icône spéciale dans le menu multijoueur pour les serveurs qui ont No Chat Reports ou d'autres mesures anti-signalements de chat.",
"option.NoChatReports.verifiedIconOffsetX": "Icône vérifiée position X",
diff --git a/src/main/resources/assets/nochatreports/lang/id_id.json b/src/main/resources/assets/nochatreports/lang/id_id.json
index 8a562ef..096dd82 100644
--- a/src/main/resources/assets/nochatreports/lang/id_id.json
+++ b/src/main/resources/assets/nochatreports/lang/id_id.json
@@ -8,6 +8,5 @@
"gui.nochatreports.safety_status.undefined": "§oNo Chat Reports§r tidak dapat mengevaluasi keamanan server ini. Ini seharusnya tidak dapat terjadi, mohon laporkan ke developer.",
"gui.nochatreports.unsafe_server.header": "Perhatian: Server Tidak Aman",
"gui.nochatreports.unsafe_server.contents": "Server ini mewajibkan semua orang mengirim pesan dengan tandanya, ini berarti laporan dapat dikirim ke Mojang. Kemungkinan besar ini berarti pemilik servernya memilih untuk menyalakan 'enforce-secure-profile' di konfigurasi servernya. Kamu masih bisa bermain tetapi §oNo Chat Reports§r tidak dapat melindungi kamu.",
- "gui.nochatreports.unsafe_server.check": "Jangan perlihatkan lagi untuk server ini",
- "gui.nochatreports.reload_config_tooltip": "§oReload§r konfigurasi §oNo Chat Reports§r. Gunakan ini secara berhati-hati"
+ "gui.nochatreports.unsafe_server.check": "Jangan perlihatkan lagi untuk server ini"
} \ No newline at end of file
diff --git a/src/main/resources/assets/nochatreports/lang/ja_jp.json b/src/main/resources/assets/nochatreports/lang/ja_jp.json
index 78828e6..8ace9cb 100644
--- a/src/main/resources/assets/nochatreports/lang/ja_jp.json
+++ b/src/main/resources/assets/nochatreports/lang/ja_jp.json
@@ -22,9 +22,7 @@
"gui.nochatreports.status_whitelist_all": "§a§lOK(すべてのサーバー)",
"gui.nochatreports.status_whitelist_yes": "§a§lOK",
"gui.nochatreports.status_whitelist_no": "§c§lいいえ",
- "gui.nochatreports.reload_config_tooltip": "No Chat Reports構成を再ロードします。気をつけて使ってください。",
"gui.nochatreports.verified_server": "§a§lセキュアなサーバー§r\nこのサーバーにNo Chat Reportsがインストールされているか、または他の既知の方法でチャットの通報を防ぐことができます。安全に話すことができます。",
- "gui.nochatreports.ncr_toggle_tooltip": "No Chat Reports:%1$s\nモジュールのクライアント機能の大部分を無効化または有効化します。NCRの問題を引き起こすため、Paper/Velocityサーバーに参加するにはこのようにしなければならないかもしれません。\n暗号化、チャット信頼状態の調整、オリジナルの「チャットメッセージを検証できない」警告ポップアップの削除など、ネットワークとは関係のないことがあります。これらは構成内で個別に無効にすることができます。",
"gui.nochatreports.ncr_state_on": "§a§l有効§r",
"gui.nochatreports.ncr_state_off": "§c§l無効§r",
"nochatreports.connect.nokey_rejected": "サーバーは、チャット署名鍵のない接続を拒否します。",
@@ -72,16 +70,12 @@
"option.NoChatReports.enableDebugLog.tooltip": "一部のデバッグ情報のログを有効にします。これは非開発者にとっては通常不要です。",
"option.NoChatReports.disableTelemetry": "遠隔測定を無効にする",
"option.NoChatReports.disableTelemetry.tooltip": "モジュールの内蔵テレメータを無効にすることができます。No Telemetryに似ています。",
- "option.NoChatReports.showReloadButton": "再ロードボタンを表示",
- "option.NoChatReports.showReloadButton.tooltip": "マルチプレイメニューに構成を再ロードするボタンを追加します。",
"option.NoChatReports.whitelistAllServers": "すべてのサーバーをホワイトリストに追加",
"option.NoChatReports.whitelistAllServers.tooltip": "すべてのサーバーがサーバーのホワイトリストに追加されているかのようにモジュールを動作させます。",
"option.NoChatReports.skipSigningWarning": "要求時に自動署名",
"option.NoChatReports.skipSigningWarning.tooltip": "「チャット署名が必要」という警告をスキップし、サーバーが必要な場合に自動的にチャットに署名します。",
"option.NoChatReports.showNCRButton": "モジュールボタンを表示",
- "option.NoChatReports.showNCRButton.tooltip": "マルチプレイメニューでモジュールのクライアント機能の大部分の有効状態を切り替えるボタンを追加します。",
"option.NoChatReports.enableMod": "モジュールを有効にする",
- "option.NoChatReports.enableMod.tooltip": "モジュールを有効にするクライアント機能の大部分を担当しています。セッションを途中で切り替えた場合、有効になるにはサーバーに再参加する必要があります。",
"option.NoChatReports.reconnectAwaitSeconds": "再接続待ち秒数",
"option.NoChatReports.reconnectAwaitSeconds.tooltip": "ユーザーがセキュリティ保護されていないサーバーへのアクセスに同意した場合、サーバーがチャット署名鍵なしの接続を拒否した後、クライアントが自動的に再接続するまで待機すべき秒数。",
"option.NoChatReports.postDisconnectAwaitSeconds": "切断後の待機秒数",
diff --git a/src/main/resources/assets/nochatreports/lang/ko_kr.json b/src/main/resources/assets/nochatreports/lang/ko_kr.json
index aef981b..8af8393 100644
--- a/src/main/resources/assets/nochatreports/lang/ko_kr.json
+++ b/src/main/resources/assets/nochatreports/lang/ko_kr.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "이 세션에서 메시지 서명을 비활성화합니다.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "이 세션에서 메시지 서명이 비활성화되어 있습니다. 메시지를 전송하면 활성화됩니다.",
"gui.nochatreports.signing_status.disabled_offline": "오프라인 서버기 때문에 메시지 서명을 비활성화합니다.",
- "gui.nochatreports.reload_config_tooltip": "No Chat Reports 설정을 새로고침합니다. 주의해서 사용하세요.",
"gui.nochatreports.verified_server": "§a§l안전한 서버§r\nNo Chat Reports가 설치되어 있거나 다른 알려진 방식으로 대화 메시지를 신고하는 것을 방지하는 것을 확인할 수 있습니다. 안전하게 대화할 수 있습니다.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\n모드의 대부분의 클라이언트 기능들을 활성화하거나 비활성화합니다. No Chat Reports와 문제를 일으키는 것으로 알려진 일부 Paper/Velocity 서버에 접속하기 위해 모드를 비활성화해야할 수 있습니다.\n암호화, 대화 신뢰 상태 조정 및 바닐라의 \"대화 메세지가 검증될 수 없습니다.\" 알림 제거 등 네트워킹과 관련이 없는 일부 기능은 작동하며 모드 설정에서 개별적으로 비활성화할 수 있습니다.",
"gui.nochatreports.ncr_state_on": "§a§l활성화됨§r",
"gui.nochatreports.ncr_state_off": "§c§l비활성화됨§r",
"nochatreports.connect.nokey_rejected": "서버가 대화 서명 키 없는 연결을 거부했습니다.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "클라이언트",
"option.NoChatReports.enableMod": "모드 활성화",
- "option.NoChatReports.enableMod.tooltip": "모드의 대부분의 클라이언트 기능을 활성화합니다. 세션 중에 변경되었다면 서버를 다시 접속해야 적용됩니다.",
"option.NoChatReports.showNCRButton": "NCR 버튼 표시",
- "option.NoChatReports.showNCRButton.tooltip": "멀티플레이 메뉴에 모드의 대부분의 클라이언트 기능을 토글하는 버튼을 추가합니다.",
"option.NoChatReports.defaultSigningMode": "기본 서명 모드",
"option.NoChatReports.defaultSigningMode.tooltip": "대화 서명을 강제하거나 허용하는 서버에서의 기본 서명 모드를 설정합니다.",
- "option.NoChatReports.showReloadButton": "새로고침 버튼 표시",
- "option.NoChatReports.showReloadButton.tooltip": "멀티플레이 메뉴에 모드 설정을 새로고침하는 버튼을 추가합니다.",
"option.NoChatReports.verifiedIconEnabled": "확인됨 아이콘 활성화",
"option.NoChatReports.verifiedIconEnabled.tooltip": "No Chat Reports 또는 기타 대화 신고 방지 조치가 설치된 서버에 대해 멀티플레이 메뉴에서 특수 아이콘을 표시합니다.",
"option.NoChatReports.verifiedIconOffsetX": "확인됨 아이콘 X 오프셋",
diff --git a/src/main/resources/assets/nochatreports/lang/ms_my.json b/src/main/resources/assets/nochatreports/lang/ms_my.json
index 0190afb..e21f77f 100644
--- a/src/main/resources/assets/nochatreports/lang/ms_my.json
+++ b/src/main/resources/assets/nochatreports/lang/ms_my.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "Penandatangan mesej dinyahdayakan untuk sesi ini.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Tandatangan mesej dinyahdayakan untuk sesi ini, tetapi ia akan didayakan sebaik sahaja anda menghantar sebarang mesej.",
"gui.nochatreports.signing_status.disabled_offline": "Penandatangan mesej dinyahdayakan kerana ini adalah pelayan luar talian.",
- "gui.nochatreports.reload_config_tooltip": "Muat semula konfigurasi No Chat Reports. Gunakan dengan berhati-hati.",
"gui.nochatreports.verified_server": "§a§lPelayan Selamat§r\nKami boleh mengesahkan bahawa pelayan ini memasang No Chat Reports atau menghalang laporan perbualan dengan cara lain yang diketahui. Anda boleh berbual dengan selamat di sana.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lTiada Laporan Sembang:§r %1$s\nNyahdayakan atau dayakan kebanyakan fungsi bahagian klien mod. Anda mungkin perlu melakukan ini untuk menyertai beberapa pelayan Paper/Velocity, kerana ia diketahui menyebabkan masalah dengan NCR.\nPerkara tertentu yang tidak berkaitan rangkaian, seperti penyulitan, perubahan status amanah perbualan dan pengalihan keluar pemberitahuan \"Mesej perbualan tidak dapat disahkan\" vanila masih akan berfungsi; mereka boleh dinyahdayakan dalam konfigurasi secara individu.",
"gui.nochatreports.ncr_state_on": "§a§lDidayakan§r",
"gui.nochatreports.ncr_state_off": "§c§ldinyahdayakan§r",
"nochatreports.connect.nokey_rejected": "Pelayan menolak sambungan tanpa kunci tandatangan perbualan.",
@@ -52,13 +50,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Klien",
"option.NoChatReports.enableMod": "Dayakan mod",
- "option.NoChatReports.enableMod.tooltip": "Bertanggungjawab untuk membolehkan kebanyakan kefungsian sisi klien mod. Perlu menyertai semula pelayan untuk berkuat kuasa jika ditogol pada pertengahan sesi.",
"option.NoChatReports.showNCRButton": "Tunjukkan butang NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Menambah butang yang menogol kebanyakan fungsi sisi klien mod ke menu multipemain.",
"option.NoChatReports.defaultSigningMode": "Mod penandatangan lalai",
"option.NoChatReports.defaultSigningMode.tooltip": "Menetapkan mod tandatangan lalai untuk pelayan yang memaksa atau membenarkan tandatangan perbualan.",
- "option.NoChatReports.showReloadButton": "Tunjukkan butang muat semula",
- "option.NoChatReports.showReloadButton.tooltip": "Menambah butang untuk muat semula konfigurasi pada menu multipemain.",
"option.NoChatReports.verifiedIconEnabled": "Ikon disahkan didayakan",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Membenarkan mod memaparkan ikon khas dalam menu multipemain untuk pelayan yang mempunyai No Chat Reports atau beberapa langkah anti-pelaporan-perbualan lain yang dipasang.",
"option.NoChatReports.verifiedIconOffsetX": "Ofset X ikon disahkan",
diff --git a/src/main/resources/assets/nochatreports/lang/nl_nl.json b/src/main/resources/assets/nochatreports/lang/nl_nl.json
index 9220d2c..48225eb 100644
--- a/src/main/resources/assets/nochatreports/lang/nl_nl.json
+++ b/src/main/resources/assets/nochatreports/lang/nl_nl.json
@@ -8,6 +8,5 @@
"gui.nochatreports.safety_status.undefined": "No Chat Reports kon de veiligheid van deze server niet evalueren. Dit zou nooit mogen gebeuren, rapporteer dit alsjeblieft als een bug aan de mod ontwikkelaar.",
"gui.nochatreports.unsafe_server.header": "Opgelet: Onveilige Server",
"gui.nochatreports.unsafe_server.contents": "Deze server vereist dat alle berichten van spelers digitaal ondertekend worden, wat betekent dat ze aan Mojang gerapporteerd kunnen worden. Waarschijnlijk komt dit omdat de eigenaar van de server de 'enforce-secure-profile' optie ingeschakeld gehouden heeft in de server.properties, wat sinds 1.19.1 de standaard is. Je kan ervoor kiezen om toch op deze server te spelen, echter zal No Chat Reports niet in staat zijn om je te beschermen.",
- "gui.nochatreports.unsafe_server.check": "Niet meer tonen voor deze server",
- "gui.nochatreports.reload_config_tooltip": "Herlaad de No Chat Reports configuratie. Gebruik zorgvuldig."
+ "gui.nochatreports.unsafe_server.check": "Niet meer tonen voor deze server"
}
diff --git a/src/main/resources/assets/nochatreports/lang/pl_pl.json b/src/main/resources/assets/nochatreports/lang/pl_pl.json
index 6239810..fe3bf7a 100644
--- a/src/main/resources/assets/nochatreports/lang/pl_pl.json
+++ b/src/main/resources/assets/nochatreports/lang/pl_pl.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "Podpisywanie wiadomości jest wyłączone dla tej sesji.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Podpisywanie wiadomości jest wyłączone dla tej sesji, ale zostanie włączone po wysłaniu jakiejkolwiek wiadomości.",
"gui.nochatreports.signing_status.disabled_offline": "Podpisywanie wiadomości jest wyłączone, ponieważ jest to serwer offline.",
- "gui.nochatreports.reload_config_tooltip": "Przeładuj konfigurację No Chat Reports. Używaj ostrożnie.",
"gui.nochatreports.verified_server": "§a§lBezpieczny serwer§r\nMożemy potwierdzić, że ten serwer ma zainstalowany No Chat Reports, lub w inny znany sposób uniemożliwia raportowanie czatu. Możesz tam bezpiecznie czatować.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nWyłącz lub włącz większość funkcjonalności modu po stronie klienta. Może to być konieczne, aby dołączyć do niektórych serwerów Paper/Velocity, ponieważ są znane z powodowania problemów z NCR.\nPewne rzeczy związane z siecią, takie jak szyfrowanie, dostosowania statusu zaufania czatu i usuwanie \"Toastu\" Vanilla \"Wiadomości czatu nie mogą być zweryfikowane\", będą nadal działać; można je wyłączyć indywidualnie w pliku konfiguracyjnym.",
"gui.nochatreports.ncr_state_on": "§a§lWłączone§r",
"gui.nochatreports.ncr_state_off": "§c§lWyłączone§r",
"nochatreports.connect.nokey_rejected": "Serwer odrzucił połączenie bez klucza szyfrowania czatu.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Klient",
"option.NoChatReports.enableMod": "Włącz modyfikację",
- "option.NoChatReports.enableMod.tooltip": "Odpowiada za większość funkcjonalności modyfikacji po stronie klienta. Jeśli zostanie włączony w trakcie sesji, konieczne będzie ponowne dołączenie do serwera, aby zmiany zaczęły działać.",
"option.NoChatReports.showNCRButton": "Pokaż przycisk NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Dodaje przycisk przełączający większość funkcjonalności modyfikacji po stronie klienta do menu wieloosobowego.",
"option.NoChatReports.defaultSigningMode": "Domyślny tryb podpisywania",
"option.NoChatReports.defaultSigningMode.tooltip": "Ustawia domyślny tryb podpisywania dla serwerów, które wymuszają lub pozwalają na podpisywanie wiadomości czatu.",
- "option.NoChatReports.showReloadButton": "Pokaż przycisk ponownego wczytywania",
- "option.NoChatReports.showReloadButton.tooltip": "Dodaje przycisk ponownego wczytywania konfiguracji do menu wieloosobowego.",
"option.NoChatReports.verifiedIconEnabled": "Włącz ikonę zweryfikowanego serwera",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Umożliwia modyfikacji wyświetlanie specjalnej ikony w menu wieloosobowym dla serwerów, które zainstalowały No Chat Reports lub inne środki anty-raportowania czatu.",
"option.NoChatReports.verifiedIconOffsetX": "Przesunięcie X ikony zweryfikowanego serwera",
diff --git a/src/main/resources/assets/nochatreports/lang/pt_br.json b/src/main/resources/assets/nochatreports/lang/pt_br.json
index 7931b1c..f1e1a6f 100644
--- a/src/main/resources/assets/nochatreports/lang/pt_br.json
+++ b/src/main/resources/assets/nochatreports/lang/pt_br.json
@@ -13,9 +13,7 @@
"gui.nochatreports.unsafe_server.header": "Cuidado: servidor inseguro",
"gui.nochatreports.unsafe_server.contents": "Este servidor exige que todas as mensagens de bate-papo sejam assinadas, o que significa que elas podem ser relatadas ao Mojang, o que pode resultar em uma proibição de todos os servidores multiplayer.Isso provavelmente significa que o proprietário do servidor manteve \"enforce-secure-profile\" ativado no server.properties, que é o padrão desde 1.19.1.Você pode optar por jogar de qualquer maneira, mas nenhum relatório de bate-papo não será capaz de protegê -lo.",
"gui.nochatreports.unsafe_server.check": "Não mostre novamente para este servidor",
- "gui.nochatreports.reload_config_tooltip": "Recarregue nenhum relatório de bate-papo Config.Use com cuidado.",
"gui.nochatreports.verified_server": "§a§lServidor seguro§r\nPoderíamos verificar se este servidor não possui relatórios de bate-papo instalados ou evita relatórios de bate-papo de outra maneira conhecida.Você pode conversar lá com segurança.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lSem relatórios de bate-papo:§r %1$s\nDesative ou habilite a maioria da funcionalidade do lado do cliente do MOD.Você pode ter que fazer isso para ingressar em alguns servidores de papel/velocidade, pois eles são conhecidos por causar problemas com a NCR.\nCerta networking-unrelated things, como criptografia, ajustes de status de confiança de bate-papo e remoção de vanilla \"As mensagens de bate-papo não podem ser verificadas\" A torrada ainda funcionará;Eles podem ser desativados na configuração individualmente.",
"gui.nochatreports.ncr_state_on": "§a§lHabilitada§r",
"gui.nochatreports.ncr_state_off": "§c§lDesabilitada§r",
"nochatreports.connect.nokey_rejected": "Conexão rejeitada por servidor sem chave de assinatura de bate-papo.",
@@ -57,14 +55,10 @@
"option.NoChatReports.enableDebugLog.tooltip": "Permite o registro de determinadas informações de depuração.Isso geralmente é inútil para não desenvolvedores.",
"option.NoChatReports.disableTelemetry": "Desative a telemetria",
"option.NoChatReports.disableTelemetry.tooltip": "Permite que o mod desative a telemetria interna, semelhante a como nenhuma telemetria faz.",
- "option.NoChatReports.showReloadButton": "Mostre o botão Reload",
- "option.NoChatReports.showReloadButton.tooltip": "Adiciona um botão para recarregamento da configuração ao menu multiplayer.",
"option.NoChatReports.whitelistAllServers": "Whitelist todos os servidores",
"option.NoChatReports.whitelistAllServers.tooltip": "Faz com que o mod se comporte como se todos os servidores fossem adicionados a §oServidores de permissões na lista de permissões§r Lista.",
"option.NoChatReports.showNCRButton": "Mostre o botão NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Adiciona um botão que alterna a maior parte da funcionalidade do lado do Mod ao menu multiplayer.",
"option.NoChatReports.enableMod": "Ativar mod",
- "option.NoChatReports.enableMod.tooltip": "Responsável por ativar a maioria da funcionalidade do lado do Mod, consulte a opção acima.",
"option.NoChatReports.reconnectAwaitSeconds": "Reconectar aguardar segundos",
"option.NoChatReports.reconnectAwaitSeconds.tooltip": "Número de segundos, qual cliente deve esperar antes da reconectar automática assim que o servidor rejeitar a conexão sem a chave de assinatura de bate-papo, assumindo que o usuário concordasse em inserir o servidor inseguro.",
"option.NoChatReports.postDisconnectAwaitSeconds": "Pós -desconexão aguarda segundos",
diff --git a/src/main/resources/assets/nochatreports/lang/ro_ro.json b/src/main/resources/assets/nochatreports/lang/ro_ro.json
index c903535..5e7c6c4 100644
--- a/src/main/resources/assets/nochatreports/lang/ro_ro.json
+++ b/src/main/resources/assets/nochatreports/lang/ro_ro.json
@@ -8,6 +8,5 @@
"gui.nochatreports.safety_status.undefined": "No Chat Reports nu a putut evalua siguranța acestui server. Aceasta nu ar trebui să se întâmple niciodată, te rog trimite-l ca un bug la dezvoltatorul modului..",
"gui.nochatreports.unsafe_server.header": "Atenție: server nesigur",
"gui.nochatreports.unsafe_server.contents": "Acest server cere ca toate mesajele să fie semnate, ceea ce înseamnă că pot fi raportate la Micro$oft. Aceasta probabil înseamnă că proprietarul serverului a lăsat „enforce-secure-profile” activat pe server.properties, care este implicit din 1.19.1. Poți alege să joci, dar No Chat Reports nu va putea să te protejeze.",
- "gui.nochatreports.unsafe_server.check": "Nu afișa din nou pentru acest server",
- "gui.nochatreports.reload_config_tooltip": "Reîncarcă configurația No Chat Reports. Folosește cu grijă."
+ "gui.nochatreports.unsafe_server.check": "Nu afișa din nou pentru acest server"
}
diff --git a/src/main/resources/assets/nochatreports/lang/ru_ru.json b/src/main/resources/assets/nochatreports/lang/ru_ru.json
index af887be..ee32765 100644
--- a/src/main/resources/assets/nochatreports/lang/ru_ru.json
+++ b/src/main/resources/assets/nochatreports/lang/ru_ru.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "Подписание сообщений в этом сеансе отключено.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Подписание сообщений отключено для этого сеанса, но оно будет включено, как только вы отправите любое сообщение.",
"gui.nochatreports.signing_status.disabled_offline": "Подписание сообщений отключено, так как это автономный сервер.",
- "gui.nochatreports.reload_config_tooltip": "Перезагрузите конфигурацию No Chat Reports. Используйте осторожно.",
"gui.nochatreports.verified_server": "§a§lБезопасный сервер§r\nМы могли бы убедиться, что на этом сервере установлен No Chat Reports или что он предотвращает отчеты о чате каким-либо другим известным способом. Вы можете безопасно общаться там.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nОтключите или включите большую часть клиентских функций мода. Возможно, вам придется сделать это, чтобы подключиться к некоторым серверам Paper/Velocity, поскольку известно, что они вызывают проблемы с No Chat Reports.\nНекоторые не связанные с сетью вещи, такие как шифрование, настройки статуса доверия в чате и удаление всплывающего сообщения vanilla «Сообщения чата не могут быть проверены», по-прежнему будут работать; они могут может быть отключен в конфигурации индивидуально.",
"gui.nochatreports.ncr_state_on": "§a§lВключено§r",
"gui.nochatreports.ncr_state_off": "§c§lОтключено§r",
"nochatreports.connect.nokey_rejected": "Сервер отклонил соединение без ключа подписи чата.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "Настройки No Chat Reports",
"configuration.NoChatReports.category.client": "Клиент",
"option.NoChatReports.enableMod": "Включить мод",
- "option.NoChatReports.enableMod.tooltip": "Отвечает за включение большей части клиентских функций мода. Потребуется повторное подключение к серверу, чтобы оно вступило в силу, если переключено в середине сеанса.",
"option.NoChatReports.showNCRButton": "Показать кнопку No Chat Reports",
- "option.NoChatReports.showNCRButton.tooltip": "Добавляет кнопку, которая переключает большую часть клиентских функций мода в меню многопользовательской игры.",
"option.NoChatReports.defaultSigningMode": "Режим подписи по умолчанию",
"option.NoChatReports.defaultSigningMode.tooltip": "Устанавливает режим подписи по умолчанию для серверов, которые принудительно или разрешают подписание в чате.",
- "option.NoChatReports.showReloadButton": "Show reload button",
- "option.NoChatReports.showReloadButton.tooltip": "Добавляет кнопку для перезагрузки конфигурации в меню многопользовательской игры.",
"option.NoChatReports.verifiedIconEnabled": "Значок подтверждения включен",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Позволяет моду отображать специальный значок в меню многопользовательской игры для серверов, на которых установлен No Chat Reports или какие-либо другие меры по борьбе с сообщениями о чатах.",
"option.NoChatReports.verifiedIconOffsetX": "Значок подтверждения, X-сдвиг",
diff --git a/src/main/resources/assets/nochatreports/lang/sk_sk.json b/src/main/resources/assets/nochatreports/lang/sk_sk.json
index 1601327..153b98f 100644
--- a/src/main/resources/assets/nochatreports/lang/sk_sk.json
+++ b/src/main/resources/assets/nochatreports/lang/sk_sk.json
@@ -9,6 +9,5 @@
"gui.nochatreports.safety_status.undefined": "No Chat Reports nevie zistiť bezpečnosť tohto servera. Toto by sa nikdy nemalo stať, prosím nahlás to ako chybu vývojárovi módu.",
"gui.nochatreports.unsafe_server.header": "Pozor: nezabezpečený server",
"gui.nochatreports.unsafe_server.contents": "Tento server požaduje aby boli všetky správy podpísané, a teda nahlásené Mojangu. Toto znamená, že správca servera ponechal možnosť \"enforce-secure-profile\" zapnutú v server.properties. Je to tak predvolené vo verzii 1.19.1. Môžeš stále hrať ale No Chat Reports ťa nebude môcť chrániť.",
- "gui.nochatreports.unsafe_server.check": "Už nikdy nezobrazovať pre tento server",
- "gui.nochatreports.reload_config_tooltip": "Znovu načítať nastavenia No Chat Reports. Používaj opatrne."
+ "gui.nochatreports.unsafe_server.check": "Už nikdy nezobrazovať pre tento server"
}
diff --git a/src/main/resources/assets/nochatreports/lang/th_th.json b/src/main/resources/assets/nochatreports/lang/th_th.json
index 3958c1d..f95bf7a 100644
--- a/src/main/resources/assets/nochatreports/lang/th_th.json
+++ b/src/main/resources/assets/nochatreports/lang/th_th.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "การลงนามข้อความในเซสชันนี้ถูกปิดอยู่",
"gui.nochatreports.signing_status.disabled_allowance_pending": "การลงนามข้อความถูกปิดในเซสชันนี้ แต่จะถูกเปิดอีกครั้งเมื่อคุณเข้าใหม่",
"gui.nochatreports.signing_status.disabled_offline": "การลงนามข้อความถูกปิดเนื่องจากเซิร์ฟเวอร์นี้เป็นเซิร์ฟเวอร์แบบออฟไลน์",
- "gui.nochatreports.reload_config_tooltip": "โหลดการตั้งค่าของ No Chat Reports ใหม่ โปรดใช้อย่างระมัดระวัง",
"gui.nochatreports.verified_server": "§l§a§lเซิร์ฟเวอร์ปลอดภัย§r\nเรายืนยันได้ว่าเซิร์ฟเวอร์นี้ได้ติดตั้งม็อด No Chat Report ไว้ หรือป้องกันการรายงานแช็ตในทางใดทางหนึ่ง คุณสามารถพูดคุยในเซิร์ฟเวอร์ดังกล่าวได้อย่างปลอดภัย",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nปิดหรือเปิดฟังก์ชันต่าง ๆ ของม็อดฝั่งไคลเอนต์ ซึ่งคุณอาจจำเป็นต้องเปิดหรือปิดตัวเลือกนี้เพื่อให้สามารถเข้าเล่นเซิร์ฟเวอร์ของ Paper หรือ Velocity บางเซิร์ฟเวอร์ได้, เนื่องมาจากเซิร์ฟเวอร์เหล่านี้มักมีปัญหากับม็อดนี้.\nฟีเจอร์บางอย่างที่ไม่เกี่ยวข้องกับเครือข่าย เช่น การเข้ารหัส การปรับปรุงสถานะความน่าเชื่อถือของแช็ต และการนำโทสต์ \"ไม่สามารถยืนยันข้อความแช็ตได้\" ออก จะยังคงใช้งานได้ตามปกติ ฟีเจอร์เหล่านี้สามารถปิดแยกต่างหากได้",
"gui.nochatreports.ncr_state_on": "§a§lเปิด§r",
"gui.nochatreports.ncr_state_off": "§c§lปิด§r",
"nochatreports.connect.nokey_rejected": "เซิร์ฟเวอร์ปฏิเสธการเชื่อมต่อที่ไม่มีคีย์การลงนามแช็ต",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "ฝั่งไคลเอนต์",
"option.NoChatReports.enableMod": "เปิดการใช้งานม็อด",
- "option.NoChatReports.enableMod.tooltip": "มีหน้าที่เปิดหรือปิดฟังก์ชันส่วนใหญ่ของม็อดฝั่งไคลเอนต์ หากถูกปิด/เปิดกลางเซสชัน คุณต้องเข้าเซิร์ฟเวอร์ใหม่เพื่อให้เกิดผลตามการตั้งค่าที่เปลี่ยนไป",
"option.NoChatReports.showNCRButton": "แสดงปุ่ม NCR",
- "option.NoChatReports.showNCRButton.tooltip": "เพิ่มปุ่มที่สามารถเปิดปิดฟังก์ชันส่วนใหญ่ของม็อดฝั่งไคลเอนต์ได้เข้าไปในหน้าเมนูผู้เล่นหลายคน",
"option.NoChatReports.defaultSigningMode": "โหมดการลงนามแบบค่าเริ่มต้น",
"option.NoChatReports.defaultSigningMode.tooltip": "ตั้งให้โหมดการลงนามเป็นค่าเริ่มต้นให้เซิร์ฟเวอร์ที่บังคับหรืออนุญาตให้ใช้การลงนามแช็ต",
- "option.NoChatReports.showReloadButton": "แสดงปุ่มรีโหลด",
- "option.NoChatReports.showReloadButton.tooltip": "เพิ่มปุ่มสำหรับการโหลดการตั้งค่าใหม่เข้าไปในหน้าเมนูผู้เล่นหลายคน",
"option.NoChatReports.verifiedIconEnabled": "เปิดการแสดงไอคอนการยืนยัน",
"option.NoChatReports.verifiedIconEnabled.tooltip": "อนุญาตให้ม็อดแสดงไอคอนพิเศษในหน้าเมนูผู้เล่นหลายคนสำหรับเซิร์ฟเวอร์ที่ไม่มีม็อด No Chat Reports หรือมาตรการการปัองกันการรายงานข้อความติดตั้งไว้",
"option.NoChatReports.verifiedIconOffsetX": "ตำแหน่งแนวนอนของไอคอนการยืนยัน",
diff --git a/src/main/resources/assets/nochatreports/lang/tr_tr.json b/src/main/resources/assets/nochatreports/lang/tr_tr.json
index fb06244..a105665 100644
--- a/src/main/resources/assets/nochatreports/lang/tr_tr.json
+++ b/src/main/resources/assets/nochatreports/lang/tr_tr.json
@@ -9,6 +9,5 @@
"gui.nochatreports.safety_status.undefined": "No Chat Reports bu sunucunun güvenliğini değerlendiremedi. Bu asla olmamalıydı, lütfen mod geliştiricisine bu hatayı bildirin.",
"gui.nochatreports.unsafe_server.header": "Dikkat: Güvensiz Sunucu",
"gui.nochatreports.unsafe_server.contents": "Bu sunucu, tüm sohbet mesajlarının imzalanmasını gerektiriyor; bu, Mojang'a bildirilebilecekleri anlamına gelir; bu, tüm çok oyunculu sunuculardan yasaklanmayla sonuçlanabilir. Bu muhtemelen sunucu sahibinin 1.19.1'den beri varsayılan olan server.properties'teki \"enforce-secure-profile\" özelliğini etkin tuttuğu anlamına gelir. Yine de oynamayı deneyebilirsiniz, ancak No Chat Reports sizi koruyamaz.",
- "gui.nochatreports.unsafe_server.check": "Bu sunucu için asla gösterme",
- "gui.nochatreports.reload_config_tooltip": "No Chat Reports'un yapılandırma klasörünü yenile. Dikkatli kullanın."
+ "gui.nochatreports.unsafe_server.check": "Bu sunucu için asla gösterme"
}
diff --git a/src/main/resources/assets/nochatreports/lang/uk_ua.json b/src/main/resources/assets/nochatreports/lang/uk_ua.json
index d89565e..3e60c44 100644
--- a/src/main/resources/assets/nochatreports/lang/uk_ua.json
+++ b/src/main/resources/assets/nochatreports/lang/uk_ua.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "Підписування повідомлень вимкнено цю сесію.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Підписування повідомлень вимкнено цю сесію, але буде увімкнено коли ви надішлете наступне повідомлення.",
"gui.nochatreports.signing_status.disabled_offline": "Підписування повідомлень вимкнено, бо цей сервер працює у офлайн-режимі.",
- "gui.nochatreports.reload_config_tooltip": "Перезавантажити конфігурацію No Chat Reports. Використовувати обережно.",
"gui.nochatreports.verified_server": "§a§lБезпечний сервер§r\nМи змогли підтвердити, що цей сервер встановив No Chat Reports, або видаляє підписи повідомлень іншим відомим способом. Можливо безпечно спілкуватись.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nПеремкнути більшість функціоналу модифікації зі сторони клієнта. Це може бути потрібно для деяких серверів Paper/Velocity, бо відомо що вони можуть викликати проблеми з модифікацією.\nДеякі не-мережеві речі, як шифрування, зміни до стану безпеки чату і видалення попередження \"Неможливо перевірити повідомлення\" все ще будуть працювати; їх можна окремо вимкнути у конфігурації.",
"gui.nochatreports.ncr_state_on": "§a§lУвімкнено§r",
"gui.nochatreports.ncr_state_off": "§c§lВимкнено§r",
"nochatreports.connect.nokey_rejected": "Сервер відмовив з'єднання без ключа підписування повідомлень.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Клієнт",
"option.NoChatReports.enableMod": "Увімкнути модифікацію",
- "option.NoChatReports.enableMod.tooltip": "Відповідає за увімкнення більшості функціоналу модифікації зі сторони клієнта. Вимагає повторне з'єднання до сервера, якщо змінюється під час сесії.",
"option.NoChatReports.showNCRButton": "Показувати кнопку NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Додає кнопку у меню багато-осібної гри, яка перемикає більшість функціоналу модифікації зі сторони клієнта.",
"option.NoChatReports.defaultSigningMode": "Стандартний режим підписування",
"option.NoChatReports.defaultSigningMode.tooltip": "Змінює стандартний режим підписування для серверів які вимагають або дозволяють підписування повідомлень.",
- "option.NoChatReports.showReloadButton": "Показувати кнопку перезавантаження",
- "option.NoChatReports.showReloadButton.tooltip": "Додає кнопку у меню багато-осібної гри, яка перезавантажує конфігурацію.",
"option.NoChatReports.verifiedIconEnabled": "Значок перевірення увімкнено",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Дозволяє модифікації показувати спеціальний значок у меню багато-осібної гри для серверів, які використовують No Chat Reports або інші міри проти скарг на повідомлення.",
"option.NoChatReports.verifiedIconOffsetX": "X-зсув значка перевірення",
diff --git a/src/main/resources/assets/nochatreports/lang/vi_vn.json b/src/main/resources/assets/nochatreports/lang/vi_vn.json
index b2fe6d9..6cac0b7 100644
--- a/src/main/resources/assets/nochatreports/lang/vi_vn.json
+++ b/src/main/resources/assets/nochatreports/lang/vi_vn.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "Ký tin nhắn bị tắt cho phiên này.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "Tính năng ký thư bị tắt cho phiên này, nhưng nó sẽ được bật sau khi bạn gửi bất kỳ thư nào.",
"gui.nochatreports.signing_status.disabled_offline": "Tính năng ký tin nhắn bị tắt vì đây là máy chủ ngoại tuyến.",
- "gui.nochatreports.reload_config_tooltip": "Tải lại cấu hình No Chat Reports. Sử dụng cẩn thận.",
"gui.nochatreports.verified_server": "§a§lMáy chủ an toàn§r\nChúng tôi có thể xác minh rằng máy chủ này đã cài đặt No Chat Reports hoặc ngăn báo cáo trò chuyện theo một số cách đã biết khác. Bạn có thể trò chuyện ở đó một cách an toàn.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nTắt hoặc bật hầu hết chức năng phía máy khách của mod. Bạn có thể phải thực hiện việc này để tham gia một số máy chủ Paper/Velocity, vì chúng được biết là gây ra sự cố với NCR.\nMột số thứ không liên quan đến mạng, chẳng hạn như mã hóa, điều chỉnh trạng thái tin cậy của trò chuyện và xóa toast \"Tin nhắn trò chuyện không thể được xác minh\" vanilla sẽ vẫn hoạt động; chúng có thể bị vô hiệu hóa trong cấu hình riêng lẻ.",
"gui.nochatreports.ncr_state_on": "§a§Đã bật§r",
"gui.nochatreports.ncr_state_off": "§c§Đã tắt§r",
"nochatreports.connect.nokey_rejected": "Máy chủ từ chối kết nối mà không có khóa ký trò chuyện.",
@@ -53,13 +51,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "Máy khách",
"option.NoChatReports.enableMod": "Bật mod",
- "option.NoChatReports.enableMod.tooltip": "Chịu trách nhiệm kích hoạt hầu hết các chức năng phía máy khách của mod. Sẽ yêu cầu tham gia lại máy chủ để có hiệu lực nếu bật giữa phiên.",
"option.NoChatReports.showNCRButton": "Hiện nút NCR",
- "option.NoChatReports.showNCRButton.tooltip": "Thêm một nút chuyển đổi hầu hết chức năng phía máy khách của mod sang menu nhiều người chơi.",
"option.NoChatReports.defaultSigningMode": "Chế độ ký mặc định",
"option.NoChatReports.defaultSigningMode.tooltip": "Đặt chế độ ký mặc định cho các máy chủ buộc hoặc cho phép ký trò chuyện.",
- "option.NoChatReports.showReloadButton": "Hiển thị nút tải lại",
- "option.NoChatReports.showReloadButton.tooltip": "Thêm một nút để tải lại cấu hình vào menu nhiều người chơi.",
"option.NoChatReports.verifiedIconEnabled": "Đã bật biểu tượng đã xác minh",
"option.NoChatReports.verifiedIconEnabled.tooltip": "Cho phép mod hiển thị biểu tượng đặc biệt trong menu nhiều người chơi cho các máy chủ có No Chat Reports hoặc một số biện pháp báo cáo chống trò chuyện được cài đặt.",
"option.NoChatReports.verifiedIconOffsetX": "Biểu tượng đã xác minh độ lệch X",
diff --git a/src/main/resources/assets/nochatreports/lang/zh_cn.json b/src/main/resources/assets/nochatreports/lang/zh_cn.json
index 55f3df3..a5aa7fd 100644
--- a/src/main/resources/assets/nochatreports/lang/zh_cn.json
+++ b/src/main/resources/assets/nochatreports/lang/zh_cn.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "此会话已禁用聊天签名。",
"gui.nochatreports.signing_status.disabled_allowance_pending": "此会话已禁用聊天签名,但一旦你发送任何消息,它就会启用。",
"gui.nochatreports.signing_status.disabled_offline": "聊天签名已被禁用,因为这是一个离线服务器。",
- "gui.nochatreports.reload_config_tooltip": "重新加载No Chat Reports配置。请小心使用。",
"gui.nochatreports.verified_server": "§a§l安全的服务器§r\n我们可以确定此服务器安装了No Chat Reports,或者以其他已知方式阻止聊天举报。你可以安全地聊天。",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r%1$s\n禁用或启用模组的大部分客户端功能。你可能必须这样做才能加入一些Paper/Velocity服务器,因为它们会导致模组出现问题。某些与网络无关的事情,如聊天信任状态调整和删除原版的“聊天消息无法验证”警告弹窗仍然有效;它们可以在配置中单独禁用。",
"gui.nochatreports.ncr_state_on": "§a§l启用§r",
"gui.nochatreports.ncr_state_off": "§c§l禁用§r",
"nochatreports.connect.nokey_rejected": "服务器拒绝没有聊天签名密钥的连接。",
@@ -52,13 +50,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "客户端",
"option.NoChatReports.enableMod": "启用模组",
- "option.NoChatReports.enableMod.tooltip": "负责启用模组的大部分客户端功能。如果在会话中途切换,则需要重新加入服务器才能生效。",
"option.NoChatReports.showNCRButton": "显示模组按钮",
- "option.NoChatReports.showNCRButton.tooltip": "添加一个按钮,可以在多人游戏菜单中切换模组大部分客户端功能的启用状态。",
"option.NoChatReports.defaultSigningMode": "默认签名模式",
"option.NoChatReports.defaultSigningMode.tooltip": "为强制或允许聊天签名的服务器设置签名模式的默认值。",
- "option.NoChatReports.showReloadButton": "显示重新加载按钮",
- "option.NoChatReports.showReloadButton.tooltip": "在多人游戏菜单中添加一个重新加载配置的按钮。",
"option.NoChatReports.verifiedIconEnabled": "启用验证图标",
"option.NoChatReports.verifiedIconEnabled.tooltip": "允许模组在多人游戏菜单中为安装了No Chat Reports或采取了其他一些反聊天举报措施的服务器显示特殊图标。",
"option.NoChatReports.verifiedIconOffsetX": "验证图标X轴偏移",
diff --git a/src/main/resources/assets/nochatreports/lang/zh_tw.json b/src/main/resources/assets/nochatreports/lang/zh_tw.json
index c5d7991..5d065fe 100644
--- a/src/main/resources/assets/nochatreports/lang/zh_tw.json
+++ b/src/main/resources/assets/nochatreports/lang/zh_tw.json
@@ -21,9 +21,7 @@
"gui.nochatreports.signing_status.disabled": "本次工作階段已停用訊息簽章",
"gui.nochatreports.signing_status.disabled_allowance_pending": "本次工作階段已停用訊息簽章,但它將會在你傳送任何訊息時啟用。",
"gui.nochatreports.signing_status.disabled_offline": "因為這是離線伺服器,所以訊息簽章已被停用。",
- "gui.nochatreports.reload_config_tooltip": "重新載入 No Chat Reports 的設定。謹慎使用。",
"gui.nochatreports.verified_server": "§a§l安全伺服器§r\n我們可以驗證這個伺服器已安裝「No Chat Reports」,或任何其他防止檢舉的方式。你可以在這裡安全地聊天。",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r%1$s\n停用或啟用大部分用戶端的功能。你可能需要這樣做才能加入一些 Paper/Velocity 伺服器,因為它們已知會與「No Chat Reports」產生問題。\n某些與網路不相關的功能,如聊天信任狀態調整和移除原版的「無法驗證聊天訊息」彈出提示框,仍可以正常運作;它們可以在設定中單獨停用。",
"gui.nochatreports.ncr_state_on": "§a§l已啟用§r",
"gui.nochatreports.ncr_state_off": "§c§l已停用§r",
"nochatreports.connect.nokey_rejected": "伺服器拒絕連線,未提供聊天簽章金鑰。",
@@ -54,13 +52,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "用戶端",
"option.NoChatReports.enableMod": "啟用模組",
- "option.NoChatReports.enableMod.tooltip": "負責啟用此模組大部分用戶端的功能。如果在中途切換,將需要重新加入伺服器才能生效。",
"option.NoChatReports.showNCRButton": "顯示 NCR 按鈕",
- "option.NoChatReports.showNCRButton.tooltip": "在多人遊戲選單中新增一個按鈕,用於切換此模組大部分的用戶端功能。",
"option.NoChatReports.defaultSigningMode": "預設簽章模式",
"option.NoChatReports.defaultSigningMode.tooltip": "設定伺服器的預設簽章模式,來強制或允許聊天簽章。",
- "option.NoChatReports.showReloadButton": "顯示重新載入按紐",
- "option.NoChatReports.showReloadButton.tooltip": "在多人遊戲選單中新增一個用於重新載入設定的按紐。",
"option.NoChatReports.verifiedIconEnabled": "啟用已驗證圖示",
"option.NoChatReports.verifiedIconEnabled.tooltip": "允許模組在多人遊戲選單中為有安裝「No Chat Reports」或其他反聊天檢舉措施的伺服器顯示特殊圖示。",
"option.NoChatReports.verifiedIconOffsetX": "驗證圖示 X 位移量",
diff --git a/src/main/resources/assets/nochatreports/lang/zlm_arab.json b/src/main/resources/assets/nochatreports/lang/zlm_arab.json
index b3d336c..053ae6e 100644
--- a/src/main/resources/assets/nochatreports/lang/zlm_arab.json
+++ b/src/main/resources/assets/nochatreports/lang/zlm_arab.json
@@ -20,9 +20,7 @@
"gui.nochatreports.signing_status.disabled": "ڤننداتاڠن ميسيج دڽهداياکن اونتوق سيسي اين.",
"gui.nochatreports.signing_status.disabled_allowance_pending": "تنداتاڠن ميسيج دڽهداياکن اونتوق سيسي اين⹁ تتاڤي اي اکن دداياکن سباٴيق سهاج اندا مڠهانتر سبارڠ ميسيج.",
"gui.nochatreports.signing_status.disabled_offline": "ڤننداتاڠن ميسيج دڽهداياکن کران اين اداله ڤلاين لوار تالين.",
- "gui.nochatreports.reload_config_tooltip": "موات سمولا کونفيݢوراسي No Chat Reports. ݢوناکن دڠن برهاتي-هاتي.",
"gui.nochatreports.verified_server": "§a§l ڤلاين سلامت§r\nکامي بوليه مڠصحکن بهاوا ڤلاين اين مماسڠ No Chat Reports اتاو مڠهالڠ لاڤورن ڤربوالن دڠن چارا لاٴين يڠ دکتاهوءي. اندا بوليه بربوال دڠن سلامت د سان.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nڽهداياکن اتاو داياکن کباڽقن فوڠسي بهاݢين کليئن مود. اندا موڠکين ڤرلو ملاکوکن اين اونتوق مڽرتاٴي ببراڤ ڤلاين Paper/Velocity⹁ کران اي دکتاهوءي مڽببکن مسئله دڠن NCR.\nڤرکارا ترتنتو يڠ تيدق برکاٴيتن رڠکاين⹁ سڤرتي ڤڽوليتن⹁ ڤروبهن ستاتوس امانه ڤربوالن دان ڤڠاليهن کلوار ڤمبريتاهوان \"ميسيج ڤربوالن تيدق داڤت دصحکن\" ۏانيلا ماسيه اکن برفوڠسي⁏ مريک بوليه دڽهداياکن دالم کونفيݢوراسي سچارا ايديۏيدو.",
"gui.nochatreports.ncr_state_on": "§a§lدداياکن§r",
"gui.nochatreports.ncr_state_off": "§c§lدڽهداياکن§r",
"nochatreports.connect.nokey_rejected": "ڤلاين منولق سامبوڠن تنڤا کونچي تنداتاڠن ڤربوالن.",
@@ -52,13 +50,9 @@
"configuration.NoChatReports.config": "No Chat Reports",
"configuration.NoChatReports.category.client": "کليئن",
"option.NoChatReports.enableMod": "دداياکن مود",
- "option.NoChatReports.enableMod.tooltip": "برتڠݢوڠجواب اونتوق ممبوليهکن کباڽقن کفوڠسين سيسي کليئن مود. ڤرلو مڽرتاٴي سمولا ڤلاين اونتوق برقوات کواس جک دتوݢول ڤد ڤرتڠهن سيسي.",
"option.NoChatReports.showNCRButton": "تونجوقکن بوتڠ NCR",
- "option.NoChatReports.showNCRButton.tooltip": "منمبه بوتڠ يڠ منوݢول کباڽقن فوڠسي سيسي کليئن مود ک مينو مولتيڤماٴين.",
"option.NoChatReports.defaultSigningMode": "مود ڤننداتاڠن لالاي",
"option.NoChatReports.defaultSigningMode.tooltip": "منتڤکن مود تنداتاڠن لالاي اونتوق ڤلاين يڠ ممقسا اتاو ممبنرکن تنداتاڠن ڤربوالن.",
- "option.NoChatReports.showReloadButton": "تونجوقکن بوتڠ موات سمولا",
- "option.NoChatReports.showReloadButton.tooltip": "منمبه بوتڠ اونتوق موات سمولا کونفيݢوراسي ڤد مينو مولتيڤماٴين.",
"option.NoChatReports.verifiedIconEnabled": "ايکون دصحکن دداياکن",
"option.NoChatReports.verifiedIconEnabled.tooltip": "ممبنرکن مود مماڤرکن ايکون خاس دالم مينو ميلتيڤماٴين اونتوق ڤلاين يڠ ممڤوڽاٴي No Chat Reports اتاو ببراڤ لڠکه انتي-ڤلاڤورن-ڤربوالن لاٴين يڠ دڤاسڠ.",
"option.NoChatReports.verifiedIconOffsetX": "اوفسيت ايک‌س ايکون دصحکن",
diff --git a/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button.png b/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button.png
deleted file mode 100644
index 1e5493a..0000000
--- a/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button.png
+++ /dev/null
Binary files differ
diff --git a/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_disabled.png b/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_disabled.png
deleted file mode 100644
index 4361280..0000000
--- a/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_hovered.png b/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_hovered.png
deleted file mode 100644
index 000734d..0000000
--- a/src/main/resources/assets/nochatreports/textures/gui/sprites/config_reload_button_hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/main/resources/mixins/common/nochatreports.mixins.json b/src/main/resources/mixins/common/nochatreports.mixins.json
index ae05247..2653cd1 100644
--- a/src/main/resources/mixins/common/nochatreports.mixins.json
+++ b/src/main/resources/mixins/common/nochatreports.mixins.json
@@ -2,6 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "com.aizistral.nochatreports.common.mixins",
+ "plugin": "com.aizistral.nochatreports.common.NCRMixinPlugin",
"compatibilityLevel": "JAVA_21",
"mixins": [
"common.MixinJsonByteBufCodec",
@@ -29,6 +30,7 @@
"client.MixinTitleScreen",
"client.MixinMinecraft",
"client.MixinClientPacketListener",
+ "client.MixinClientPacketListenerTick",
"client.MixinRowHelper",
"client.AccessorClientPacketListener"
],
diff --git a/src/main/resources/mixins/fabric/nochatreports-fabric.mixins.json b/src/main/resources/mixins/fabric/nochatreports-fabric.mixins.json
index 799993a..2874bf5 100644
--- a/src/main/resources/mixins/fabric/nochatreports-fabric.mixins.json
+++ b/src/main/resources/mixins/fabric/nochatreports-fabric.mixins.json
@@ -2,6 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "com.aizistral.nochatreports.fabric.mixins",
+ "plugin": "com.aizistral.nochatreports.common.NCRMixinPlugin",
"compatibilityLevel": "JAVA_21",
"mixins": [
],