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:
ricky 2011-06-16 10:12:12 +10:00
parent 780cb36f30
commit bc18550a3f
3 changed files with 86 additions and 80 deletions

View file

@ -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);
}