This repository was archived by the owner on Sep 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/main/java/org/mineacademy/chatcontrol/listener Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 28
28
<dependency >
29
29
<groupId >org.spigotmc</groupId >
30
30
<artifactId >spigot-api</artifactId >
31
- <version >1.16.3 -R0.1-SNAPSHOT</version >
31
+ <version >1.16.5 -R0.1-SNAPSHOT</version >
32
32
</dependency >
33
33
<!-- No longer shipped in SpigotAPI but is present in the server -->
34
34
<dependency >
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ private void onPlayerChat(CompatPlayerChatEvent e) {
54
54
return ;
55
55
}
56
56
57
- timeCheck : {
57
+ timeCheck :
58
+ {
58
59
final long now = System .currentTimeMillis () / 1000L ;
59
60
final int messageDelay = Settings .AntiSpam .Messages .DELAY .getFor (plData );
60
61
@@ -72,7 +73,8 @@ private void onPlayerChat(CompatPlayerChatEvent e) {
72
73
plData .lastMessageTime = now ;
73
74
}
74
75
75
- dupeCheck : if (Settings .AntiSpam .Messages .SIMILARITY > 0 && Settings .AntiSpam .Messages .SIMILARITY < 100 ) {
76
+ dupeCheck :
77
+ if (Settings .AntiSpam .Messages .SIMILARITY > 0 && Settings .AntiSpam .Messages .SIMILARITY < 100 ) {
76
78
if (Common .hasPerm (pl , Permissions .Bypasses .SIMILAR_CHAT ) || isWhitelisted (message , Settings .AntiSpam .Messages .WHITELIST_SIMILARITY ))
77
79
break dupeCheck ;
78
80
@@ -140,6 +142,7 @@ private void onPlayerChat(CompatPlayerChatEvent e) {
140
142
141
143
if (!Common .hasPerm (pl , Permissions .Bypasses .CAPITALIZE ))
142
144
message = Common .capitalize (message );
145
+
143
146
if (!Common .hasPerm (pl , Permissions .Bypasses .PUNCTUATE ))
144
147
message = Common .insertDot (message );
145
148
You can’t perform that action at this time.
0 commit comments