Remove unneeded kick display adminUsername

This commit is contained in:
gohjoseph 2022-03-18 01:56:59 +08:00
parent 8b064a7e22
commit 203b9bf281

View file

@ -521,7 +521,7 @@ namespace TShockAPI
{
if (player.IP == ip)
{
player.Kick("You logged in from the same IP.", true, true, "Server", true);
player.Kick("You logged in from the same IP.", true, true, null, true);
args.Handled = true;
return;
}
@ -530,7 +530,7 @@ namespace TShockAPI
var ips = JsonConvert.DeserializeObject<List<string>>(player.Account.KnownIps);
if (ips.Contains(ip))
{
player.Kick("You logged in from another location.", true, true, "Server", true);
player.Kick("You logged in from another location.", true, true, null, true);
args.Handled = true;
}
}