Added MaximumLoginAttempts to configuration system.
This commit is contained in:
parent
53c3fdf276
commit
c6b77970c8
3 changed files with 7 additions and 2 deletions
|
|
@ -290,9 +290,9 @@ namespace TShockAPI
|
|||
public static void AttemptLogin(CommandArgs args)
|
||||
{
|
||||
|
||||
if (args.Player.LoginAttempts > 3)
|
||||
if (args.Player.LoginAttempts > ConfigurationManager.MaximumLoginAttempts)
|
||||
{
|
||||
Log.Warn(args.Player.IP + "(" + args.Player.Name + ") had 3 or more invalid login attempts and was kicked automatically.");
|
||||
Log.Warn(args.Player.IP + "(" + args.Player.Name + ") had " + ConfigurationManager.MaximumLoginAttempts + " or more invalid login attempts and was kicked automatically.");
|
||||
Tools.Kick(args.Player, "Too many invalid login attempts.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue