Use localized "too many login attempts" string

This is primarily a test of the rube goldberg machine but also,
productive work.
This commit is contained in:
Lucas Nicodemus 2022-10-21 01:23:39 -07:00
parent 959b3cca24
commit 1646c5e5fd
No known key found for this signature in database

View file

@ -769,7 +769,7 @@ namespace TShockAPI
{ {
TShock.Log.Warn(String.Format("{0} ({1}) had {2} or more invalid login attempts and was kicked automatically.", TShock.Log.Warn(String.Format("{0} ({1}) had {2} or more invalid login attempts and was kicked automatically.",
args.Player.IP, args.Player.Name, TShock.Config.Settings.MaximumLoginAttempts)); args.Player.IP, args.Player.Name, TShock.Config.Settings.MaximumLoginAttempts));
args.Player.Kick("Too many invalid login attempts."); args.Player.Kick(I18n.C.GetString("Too many invalid login attempts."));
return; return;
} }