Fixeds kick not working
This commit is contained in:
parent
693e279a78
commit
d7987ac633
2 changed files with 11 additions and 6 deletions
|
|
@ -214,7 +214,7 @@ namespace TShockAPI
|
|||
/// <param name="reason">string reason</param>
|
||||
public static void Kick(int ply, string reason)
|
||||
{
|
||||
if (!Main.player[ply].active)
|
||||
if (!Netplay.serverSock[ply].active || Netplay.serverSock[ply].kill)
|
||||
return;
|
||||
if (!TShock.players[ply].group.HasPermission("immunetokick") || reason.Contains("Banned: "))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue