Added SilentJoin to TSPlayer
This commit is contained in:
parent
0aedf2b108
commit
4e768f3231
2 changed files with 6 additions and 2 deletions
|
|
@ -1444,13 +1444,15 @@ namespace TShockAPI
|
||||||
Log.Info(string.Format("{0} ({1}) from '{2}' group from '{3}' joined. ({4}/{5})", args.Player.Name, args.Player.IP,
|
Log.Info(string.Format("{0} ({1}) from '{2}' group from '{3}' joined. ({4}/{5})", args.Player.Name, args.Player.IP,
|
||||||
args.Player.Group.Name, args.Player.Country, TShock.Utils.ActivePlayers(),
|
args.Player.Group.Name, args.Player.Country, TShock.Utils.ActivePlayers(),
|
||||||
TShock.Config.MaxSlots));
|
TShock.Config.MaxSlots));
|
||||||
TShock.Utils.Broadcast(string.Format("{0} ({1}) has joined.", args.Player.Name, args.Player.Country), Color.Yellow);
|
if (!args.Player.SilentJoinInProgress)
|
||||||
|
TShock.Utils.Broadcast(string.Format("{0} ({1}) has joined.", args.Player.Name, args.Player.Country), Color.Yellow);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.Info(string.Format("{0} ({1}) from '{2}' group joined. ({3}/{4})", args.Player.Name, args.Player.IP,
|
Log.Info(string.Format("{0} ({1}) from '{2}' group joined. ({3}/{4})", args.Player.Name, args.Player.IP,
|
||||||
args.Player.Group.Name, TShock.Utils.ActivePlayers(), TShock.Config.MaxSlots));
|
args.Player.Group.Name, TShock.Utils.ActivePlayers(), TShock.Config.MaxSlots));
|
||||||
TShock.Utils.Broadcast(args.Player.Name + " has joined.", Color.Yellow);
|
if (!args.Player.SilentJoinInProgress)
|
||||||
|
TShock.Utils.Broadcast(args.Player.Name + " has joined.", Color.Yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TShock.Config.DisplayIPToAdmins)
|
if (TShock.Config.DisplayIPToAdmins)
|
||||||
|
|
|
||||||
|
|
@ -231,6 +231,8 @@ namespace TShockAPI
|
||||||
|
|
||||||
public bool SilentKickInProgress;
|
public bool SilentKickInProgress;
|
||||||
|
|
||||||
|
public bool SilentJoinInProgress;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A list of points where ice tiles have been placed.
|
/// A list of points where ice tiles have been placed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue