mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-05 01:59:34 +01:00
kick player on tempban, change setting comments to better reflect the process
This commit is contained in:
parent
221ce13176
commit
b7015f56c2
@ -86,7 +86,7 @@ public class TempbanManager implements SettingsDependent {
|
||||
*
|
||||
* @param player The player to tempban
|
||||
*/
|
||||
public void tempbanPlayer(Player player) {
|
||||
public void tempbanPlayer(final Player player) {
|
||||
if (isEnabled) {
|
||||
resetCount(player.getName());
|
||||
|
||||
@ -101,6 +101,7 @@ public class TempbanManager implements SettingsDependent {
|
||||
@Override
|
||||
public void run() {
|
||||
Bukkit.getServer().getBanList(BanList.Type.IP).addBan(ip, reason, expires, "AuthMe");
|
||||
player.kickPlayer(reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -100,15 +100,15 @@ public class SecuritySettings implements SettingsClass {
|
||||
public static final Property<List<String>> UNSAFE_PASSWORDS =
|
||||
newLowercaseListProperty("settings.security.unsafePasswords", "123456", "password", "qwerty", "12345", "54321");
|
||||
|
||||
@Comment("Tempban users if they enter the wrong password too many times")
|
||||
@Comment("Tempban a user's IP address if they enter the wrong password too many times")
|
||||
public static final Property<Boolean> TEMPBAN_ON_MAX_LOGINS =
|
||||
newProperty("Security.tempban.enableTempban", false);
|
||||
|
||||
@Comment("How many times a user can attempt to login before being tempbanned")
|
||||
@Comment("How many times a user can attempt to login before their IP being tempbanned")
|
||||
public static final Property<Integer> MAX_LOGIN_TEMPBAN =
|
||||
newProperty("Security.tempban.maxLoginTries", 10);
|
||||
|
||||
@Comment({"The length of time a player will be tempbanned in minutes",
|
||||
@Comment({"The length of time a IP address will be tempbanned in minutes",
|
||||
"Default: 480 minutes, or 8 hours"})
|
||||
public static final Property<Integer> TEMPBAN_LENGTH =
|
||||
newProperty("Security.tempban.tempbanLength", 480);
|
||||
|
Loading…
Reference in New Issue
Block a user