Skip to content

Commit

Permalink
Bump versions and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley1808 committed Jul 28, 2023
1 parent 60da5f0 commit dc45406
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -109,10 +116,17 @@ The configuration file can be found at `/config/advancedchat.json`
"ignored": "<red>${player} is ignoring you.",
"ignoredPlayer": "<dark_aqua>You are now ignoring <green>${player}",
"unignoredPlayer": "<dark_aqua>You are no longer ignoring <green>${player}",
"muteChannel": "<dark_aqua>Enabled messages from <green>${channel}",
"unMuteChannel": "<dark_aqua>Disabled messages from <green>${channel}",
"cannotIgnoreSelf": "<red>You cannot ignore yourself!",
"alreadyIgnored": "<red>You are already ignoring ${player}!",
"notAlreadyIgnored": "<red>You aren't ignoring ${player}!",
"channelNotFound": "<red>Unable to find a channel with name '${name}'!"
"channelNotFound": "<red>Unable to find a channel with name '${name}'!",
"channelMuted": "<red>You have messages disabled from this channel!",
"cannotSendVanished": "<red>You can only send messages in staff channels whilst vanished!",
"cannotSendFiltered": "<red>Your message could not be sent, as it was censored!\nMessage: ${message}",
"cannotSendSimilar": "<red>This message is too similar to your last message!",
"cannotSendSpam": "<red>Please wait before sending another message!"
},

// Socialspy related configuration.
Expand All @@ -125,6 +139,18 @@ The configuration file can be found at `/config/advancedchat.json`
"channelMessage": "${channel}${sender} <dark_gray>»</dark_gray> ${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.
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dc45406

Please sign in to comment.