From 1646c5e5fd391e46b77873be1fe15de19dd300c0 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 21 Oct 2022 01:23:39 -0700 Subject: [PATCH] Use localized "too many login attempts" string This is primarily a test of the rube goldberg machine but also, productive work. --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 1dbe7aa4..30db9c80 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -769,7 +769,7 @@ namespace TShockAPI { 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.Kick("Too many invalid login attempts."); + args.Player.Kick(I18n.C.GetString("Too many invalid login attempts.")); return; }