Skip to content

Commit

Permalink
1.3.2 Ignore Obfuscated Msgs #7
Browse files Browse the repository at this point in the history
  • Loading branch information
udu3324 committed May 13, 2022
1 parent 2455123 commit 5277228
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {
maven { url 'https://repo.hypixel.net/repository/Hypixel/' }
}

version = "1.3.1"
version = "1.3.2"
group= "com.udu3324.hytools" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Hytools"

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/udu3324/hytools/Hytools.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public void onPlayerChat(ClientChatReceivedEvent event) {
Matcher duels = Pattern.compile("^Opponent:").matcher(str);

int countOfSpaces = filtered.length() - filtered.replace(" ", "").length();

//return if message contains obfuscation text formatting
if (event.message.getFormattedText().contains("\u00A7k")) {
return;
}

if (joined.find() && !noFrontSpace.find() && countOfSpaces == 3) {
runTools(filtered, false);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/udu3324/hytools/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
public class Reference {
public static final String MODID = "HT";
public static final String NAME = "Hytools";
public static final String VERSION = "1.3.1";
public static final String VERSION = "1.3.2";
}

0 comments on commit 5277228

Please sign in to comment.