From 844bd2422167104b7e09d8b02230affea9f1f6a5 Mon Sep 17 00:00:00 2001 From: HexelDev Date: Mon, 5 Mar 2018 21:00:24 +0100 Subject: [PATCH] Fixed minor code issues --- .../fr/xephi/authme/data/QuickCommandsProtectionManager.java | 2 +- .../java/fr/xephi/authme/permission/PlayerPermission.java | 2 +- .../xephi/authme/settings/properties/ProtectionSettings.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/fr/xephi/authme/data/QuickCommandsProtectionManager.java b/src/main/java/fr/xephi/authme/data/QuickCommandsProtectionManager.java index 38a007f3..692c1dbc 100644 --- a/src/main/java/fr/xephi/authme/data/QuickCommandsProtectionManager.java +++ b/src/main/java/fr/xephi/authme/data/QuickCommandsProtectionManager.java @@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit; public class QuickCommandsProtectionManager implements SettingsDependent, HasCleanup { - private PermissionsManager permissionsManager; + private final PermissionsManager permissionsManager; private final ExpiringSet latestLogin; diff --git a/src/main/java/fr/xephi/authme/permission/PlayerPermission.java b/src/main/java/fr/xephi/authme/permission/PlayerPermission.java index 71ee84b4..f95fd09b 100644 --- a/src/main/java/fr/xephi/authme/permission/PlayerPermission.java +++ b/src/main/java/fr/xephi/authme/permission/PlayerPermission.java @@ -71,7 +71,7 @@ public enum PlayerPermission implements PermissionNode { VERIFICATION_CODE("authme.player.security.verificationcode"), /** - * Permission to use the email verification codes feature. + * Permission that enables on join quick commands checks for the player. */ QUICK_COMMANDS_PROTECTION("authme.player.protection.quickcommandsprotection"); diff --git a/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java b/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java index bb665c0f..c7d0f4a8 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java @@ -55,9 +55,9 @@ public final class ProtectionSettings implements SettingsHolder { public static final Property ANTIBOT_DELAY = newProperty("Protection.antiBotDelay", 60); - @Comment("Kicks the player that issued a command before the defined time after the login process") + @Comment("Kicks the player that issued a command before the defined time after the join process") public static final Property QUICK_COMMANDS_DENIED_BEFORE_MILLISECONDS = - newProperty("Protection.quickCommands.denyCommandsBeforeSeconds", 1000); + newProperty("Protection.quickCommands.denyCommandsBeforeMilliseconds", 1000); private ProtectionSettings() { }