Users shouldn't "leave" when they enter an incorrect password anymore. Just as soon as someone reimplements the OnLeave hook.
This commit is contained in:
parent
62bc28332a
commit
4b77ca549e
5 changed files with 17 additions and 3 deletions
|
|
@ -408,6 +408,15 @@ namespace TShockAPI
|
|||
Log.ConsoleInfo(string.Format("{0} was force kicked for : {1}", player.IP, reason));
|
||||
}
|
||||
|
||||
public void ForceKick(TSPlayer player, string reason, bool silent)
|
||||
{
|
||||
player.SilentKickInProgress = true;
|
||||
if (!player.ConnectionAlive)
|
||||
return;
|
||||
player.Disconnect(reason);
|
||||
Log.ConsoleInfo(string.Format("{0} was force kicked for : {1}", player.IP, reason));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Kicks a player from the server.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue