Disable leave message if the server is full.
TSHOCKPLUGINS-16
This commit is contained in:
parent
e17f56fae0
commit
61c4edfcde
2 changed files with 58 additions and 58 deletions
|
|
@ -973,6 +973,7 @@ namespace TShockAPI
|
||||||
if (TShock.Utils.ActivePlayers() + 1 > TShock.Config.MaxSlots &&
|
if (TShock.Utils.ActivePlayers() + 1 > TShock.Config.MaxSlots &&
|
||||||
!args.Player.Group.HasPermission(Permissions.reservedslot))
|
!args.Player.Group.HasPermission(Permissions.reservedslot))
|
||||||
{
|
{
|
||||||
|
args.Player.SilentKickInProgress = true;
|
||||||
TShock.Utils.ForceKick(args.Player, TShock.Config.ServerFullReason);
|
TShock.Utils.ForceKick(args.Player, TShock.Config.ServerFullReason);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -664,7 +664,6 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
Utils.Broadcast(tsplr.Name + " left", Color.Yellow);
|
Utils.Broadcast(tsplr.Name + " left", Color.Yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.Info(string.Format("{0} left.", tsplr.Name));
|
Log.Info(string.Format("{0} left.", tsplr.Name));
|
||||||
|
|
||||||
if (tsplr.IsLoggedIn)
|
if (tsplr.IsLoggedIn)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue