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

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kangarko committed Feb 17, 2021
1 parent 0e0f779 commit 62cae27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.3-R0.1-SNAPSHOT</version>
<version>1.16.5-R0.1-SNAPSHOT</version>
</dependency>
<!-- No longer shipped in SpigotAPI but is present in the server -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ private void onPlayerChat(CompatPlayerChatEvent e) {
return;
}

timeCheck: {
timeCheck:
{
final long now = System.currentTimeMillis() / 1000L;
final int messageDelay = Settings.AntiSpam.Messages.DELAY.getFor(plData);

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

dupeCheck: if (Settings.AntiSpam.Messages.SIMILARITY > 0 && Settings.AntiSpam.Messages.SIMILARITY < 100) {
dupeCheck:
if (Settings.AntiSpam.Messages.SIMILARITY > 0 && Settings.AntiSpam.Messages.SIMILARITY < 100) {
if (Common.hasPerm(pl, Permissions.Bypasses.SIMILAR_CHAT) || isWhitelisted(message, Settings.AntiSpam.Messages.WHITELIST_SIMILARITY))
break dupeCheck;

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

if (!Common.hasPerm(pl, Permissions.Bypasses.CAPITALIZE))
message = Common.capitalize(message);

if (!Common.hasPerm(pl, Permissions.Bypasses.PUNCTUATE))
message = Common.insertDot(message);

Expand Down

0 comments on commit 62cae27

Please sign in to comment.