Kick & ForceKick are now defaulting don't save SSI
This commit is contained in:
parent
3e0c290243
commit
576a1d97fe
1 changed files with 4 additions and 4 deletions
|
|
@ -555,9 +555,9 @@ namespace TShockAPI
|
|||
/// <param name="ply">int player</param>
|
||||
/// <param name="reason">string reason</param>
|
||||
/// <param name="silent">bool silent (default: false)</param>
|
||||
public void ForceKick(TSPlayer player, string reason, bool silent = false, bool dontSaveSSI = false)
|
||||
public void ForceKick(TSPlayer player, string reason, bool silent = false, bool saveSSI = false)
|
||||
{
|
||||
Kick(player, reason, true, silent, null, dontSaveSSI);
|
||||
Kick(player, reason, true, silent, null, saveSSI);
|
||||
}
|
||||
|
||||
#if COMPAT_SIGS
|
||||
|
|
@ -575,7 +575,7 @@ namespace TShockAPI
|
|||
/// <param name="force">bool force (default: false)</param>
|
||||
/// <param name="silent">bool silent (default: false)</param>
|
||||
/// <param name="adminUserName">bool silent (default: null)</param>
|
||||
public bool Kick(TSPlayer player, string reason, bool force = false, bool silent = false, string adminUserName = null, bool dontSaveSSI = false)
|
||||
public bool Kick(TSPlayer player, string reason, bool force = false, bool silent = false, string adminUserName = null, bool saveSSI = false)
|
||||
{
|
||||
if (!player.ConnectionAlive)
|
||||
return true;
|
||||
|
|
@ -583,7 +583,7 @@ namespace TShockAPI
|
|||
{
|
||||
string playerName = player.Name;
|
||||
player.SilentKickInProgress = silent;
|
||||
if( player.IsLoggedIn && !dontSaveSSI)
|
||||
if( player.IsLoggedIn && saveSSI)
|
||||
TShock.InventoryDB.InsertPlayerData(player);
|
||||
player.Disconnect(string.Format("Kicked: {0}", reason));
|
||||
Log.ConsoleInfo(string.Format("Kicked {0} for : {1}", playerName, reason));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue