Remove Utils.ForceKick; use TSPlayer.Kick.

Some anti-cheat calls were changed to "You have been Bounced." I don't
think we need to tell clients why they were disconnected so they can
tune their hacks better.
This commit is contained in:
Lucas Nicodemus 2017-12-27 18:01:53 -07:00
parent 9e91db9ea4
commit 1ea04ffd4f
6 changed files with 28 additions and 38 deletions

View file

@ -506,7 +506,7 @@ namespace TShockAPI
{
if (player != null && player.Active)
{
ForceKick(player, reason, false, true);
player.Kick(reason, true, true, null, true);
}
}
}
@ -549,18 +549,6 @@ namespace TShockAPI
Hooks.GeneralHooks.OnReloadEvent(player);
}
/// <summary>
/// Kicks a player from the server without checking for immunetokick permission.
/// </summary>
/// <param name="player">TSPlayer player</param>
/// <param name="reason">string reason</param>
/// <param name="silent">bool silent (default: false)</param>
/// <param name="saveSSI">bool saveSSI (default: false)</param>
public void ForceKick(TSPlayer player, string reason, bool silent = false, bool saveSSI = false)
{
player.Kick(reason, true, silent, null, saveSSI);
}
/// <summary>
/// Bans and kicks a player from the server.
/// </summary>