Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 62cae27

Browse files
committed
Formatting
1 parent 0e0f779 commit 62cae27

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<dependency>
2929
<groupId>org.spigotmc</groupId>
3030
<artifactId>spigot-api</artifactId>
31-
<version>1.16.3-R0.1-SNAPSHOT</version>
31+
<version>1.16.5-R0.1-SNAPSHOT</version>
3232
</dependency>
3333
<!-- No longer shipped in SpigotAPI but is present in the server -->
3434
<dependency>

src/main/java/org/mineacademy/chatcontrol/listener/ChatListener.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ private void onPlayerChat(CompatPlayerChatEvent e) {
5454
return;
5555
}
5656

57-
timeCheck: {
57+
timeCheck:
58+
{
5859
final long now = System.currentTimeMillis() / 1000L;
5960
final int messageDelay = Settings.AntiSpam.Messages.DELAY.getFor(plData);
6061

@@ -72,7 +73,8 @@ private void onPlayerChat(CompatPlayerChatEvent e) {
7273
plData.lastMessageTime = now;
7374
}
7475

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) {
7678
if (Common.hasPerm(pl, Permissions.Bypasses.SIMILAR_CHAT) || isWhitelisted(message, Settings.AntiSpam.Messages.WHITELIST_SIMILARITY))
7779
break dupeCheck;
7880

@@ -140,6 +142,7 @@ private void onPlayerChat(CompatPlayerChatEvent e) {
140142

141143
if (!Common.hasPerm(pl, Permissions.Bypasses.CAPITALIZE))
142144
message = Common.capitalize(message);
145+
143146
if (!Common.hasPerm(pl, Permissions.Bypasses.PUNCTUATE))
144147
message = Common.insertDot(message);
145148

0 commit comments

Comments
 (0)