Skip to content

Commit dac5819

Browse files
Disable whitelisted words since they are bugged and fix replies
1 parent b1efa37 commit dac5819

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>parallelmc</groupId>
88
<artifactId>parallelutils</artifactId>
99

10-
<version>1.12.7</version>
10+
<version>1.12.8</version>
1111
<packaging>jar</packaging>
1212

1313
<name>Parallelutils</name>

src/main/java/parallelmc/parallelutils/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public class Constants {
44

5-
public static final Version VERSION = new Version(1, 12, 7);
5+
public static final Version VERSION = new Version(1, 12, 8);
66
public static final String PLUGIN_NAME = "ParallelUtils";
77
public static final String DEFAULT_WORLD = "world2";
88
}

src/main/java/parallelmc/parallelutils/modules/parallelchat/commands/ParallelReply.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command
4444
}
4545
}
4646
});
47+
48+
ParallelChat.get().playerLastMessaged.put(sender.getUniqueId(), recipient.getUniqueId());
49+
ParallelChat.get().playerLastMessaged.put(recipient.getUniqueId(), sender.getUniqueId());
4750
}
4851
return true;
4952
}

src/main/java/parallelmc/parallelutils/modules/parallelchat/events/OnChatMessage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void onChatMessage(AsyncChatEvent event) {
109109
//if (ParallelChat.get().bannedWords.stream().anyMatch(x -> checkSlurs.matches("(?s).*" + x + ".*"))) {
110110
for (String x : ParallelChat.get().bannedWords) {
111111
if (checkSlurs.contains(x)) {
112-
if (ParallelChat.get().allowedWords.stream().noneMatch(checkSlurs::contains)) {
112+
//if (ParallelChat.get().allowedWords.stream().noneMatch(checkSlurs::contains)) {
113113
event.setCancelled(true);
114114
ParallelChat.sendParallelMessageTo(player, "Please do not say that in chat.");
115115
Component slurMsg = MiniMessage.get().parse("<gray>").append(player.displayName())
@@ -122,7 +122,7 @@ public void onChatMessage(AsyncChatEvent event) {
122122
}
123123
}
124124
return;
125-
}
125+
//}
126126
}
127127
}
128128
}

0 commit comments

Comments
 (0)