Skip to content

Commit

Permalink
fix for player ads in lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
udu3324 committed Apr 7, 2023
1 parent 659f222 commit 777c0c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.parallel=true
loader_version=0.14.17

# Mod Properties
mod_version = 1.2.0
mod_version = 1.2.1
maven_group = com.udu3324
archives_base_name = poinpow

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/udu3324/poinpow/utils/BlockLobbyAds.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public static Boolean check(String chat, CallbackInfo ci) {
// return if not on minehut
if (!Poinpow.onMinehut) return false;

Pattern pattern = Pattern.compile("^\\[AD]");
Pattern pattern = Pattern.compile("\\[AD]");

if (pattern.matcher(chat).find()) {
if (pattern.matcher(chat).find() || chat.contains(": /join")) {
Poinpow.log.info("Blocked: " + chat);
ci.cancel();
}
Expand Down

0 comments on commit 777c0c9

Please sign in to comment.