Remove unneeded kick display adminUsername
This commit is contained in:
parent
8b064a7e22
commit
203b9bf281
1 changed files with 2 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
if (player.IP == ip)
|
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;
|
args.Handled = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -530,7 +530,7 @@ namespace TShockAPI
|
||||||
var ips = JsonConvert.DeserializeObject<List<string>>(player.Account.KnownIps);
|
var ips = JsonConvert.DeserializeObject<List<string>>(player.Account.KnownIps);
|
||||||
if (ips.Contains(ip))
|
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;
|
args.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue