From dc454066ab1891d330a42779ffb9b3a1234b21a8 Mon Sep 17 00:00:00 2001 From: Wesley1808 <74668381+Wesley1808@users.noreply.github.com> Date: Fri, 28 Jul 2023 16:31:21 +0200 Subject: [PATCH] Bump versions and update readme --- README.md | 28 +++++++++++++++++++++++++++- gradle.properties | 8 ++++---- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 40662ba..f827efd 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,13 @@ Since this mod adds new ways of private conversations, it also includes a social These modes allow you to control which type of messages you want to 'spy' on, as all of them could be too much. +___ +### Anti Spam + +A simple anti spam system that prevents players from sending too many messages in a short time. + +It also has the option to prevent players from sending the same (or very similar) message multiple times in a row. + ___ ### Text Filter @@ -109,10 +116,17 @@ The configuration file can be found at `/config/advancedchat.json` "ignored": "${player} is ignoring you.", "ignoredPlayer": "You are now ignoring ${player}", "unignoredPlayer": "You are no longer ignoring ${player}", + "muteChannel": "Enabled messages from ${channel}", + "unMuteChannel": "Disabled messages from ${channel}", "cannotIgnoreSelf": "You cannot ignore yourself!", "alreadyIgnored": "You are already ignoring ${player}!", "notAlreadyIgnored": "You aren't ignoring ${player}!", - "channelNotFound": "Unable to find a channel with name '${name}'!" + "channelNotFound": "Unable to find a channel with name '${name}'!", + "channelMuted": "You have messages disabled from this channel!", + "cannotSendVanished": "You can only send messages in staff channels whilst vanished!", + "cannotSendFiltered": "Your message could not be sent, as it was censored!\nMessage: ${message}", + "cannotSendSimilar": "This message is too similar to your last message!", + "cannotSendSpam": "Please wait before sending another message!" }, // Socialspy related configuration. @@ -125,6 +139,18 @@ The configuration file can be found at `/config/advancedchat.json` "channelMessage": "${channel}${sender} ยป ${message}" }, + // Anti spam configuration + "antiSpam": { + // Enables the anti spam feature. + "enabled": false, + // Minimum cooldown in milliseconds between messages. + "messageCooldown": 1000, + // Whether to block a message when it is too similar to the last message. + "blockSimilarMessages": false, + // Minimum similarity percentage between messages to block them. + "similarityThreshold": 85 + }, + // Text filter configuration. "filter": { // Enables the text filter. diff --git a/gradle.properties b/gradle.properties index 5fe9c00..1e609d5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,15 +5,15 @@ org.gradle.jvmargs=-Xmx2G minecraft_version=1.20.1 loader_version=0.14.21 # Mod Properties -mod_version=1.2 +mod_version=1.3 maven_group=me.wesley1808 archives_base_name=advancedchat # Dependencies -fabric_version=0.83.0+1.20.1 -placeholder_api_version=2.1.1+1.20 +fabric_version=0.86.1+1.20.1 +placeholder_api_version=2.1.2+1.20.1 playerdata_api_version=0.2.2+1.19.3 predicate_api_version=0.1.2+1.20 permission_api_version=0.2-SNAPSHOT -styledchat_version=2.2.0+1.20 +styledchat_version=2.2.2+1.20.1 vanish_version=1.4.2+1.20 mixin_extras=0.1.1