Fixed ForceKickAll using the wrong Player.Active
Fixed logs being sent to non active player Notify the server console as well when tshock updates are available Made all command methods private
This commit is contained in:
parent
780cb36f30
commit
bc18550a3f
3 changed files with 86 additions and 80 deletions
|
|
@ -117,7 +117,7 @@ namespace TShockAPI
|
|||
TSPlayer.Server.SendMessage(log, color);
|
||||
foreach (TSPlayer player in TShock.Players)
|
||||
{
|
||||
if (player != null && player.Group.HasPermission("logs"))
|
||||
if (player != null && player.Active && player.Group.HasPermission("logs"))
|
||||
player.SendMessage(log, color);
|
||||
}
|
||||
}
|
||||
|
|
@ -198,7 +198,7 @@ namespace TShockAPI
|
|||
{
|
||||
foreach(TSPlayer player in TShock.Players)
|
||||
{
|
||||
if (player != null && player.TPlayer.active)
|
||||
if (player != null && player.Active)
|
||||
{
|
||||
Tools.ForceKick(player, reason);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue