Add reserved slots
This commit is contained in:
@@ -169,6 +169,8 @@ namespace Torch.Server.Managers
|
||||
_log.Warn($"Rejecting user {steamId} because they are not whitelisted in Torch.cfg.");
|
||||
UserRejected(steamId, JoinResult.NotInGroup);
|
||||
}
|
||||
else if(config.EnableReservedSlots && config.ReservedPlayers.Contains(steamId))
|
||||
UserAccepted(steamId);
|
||||
else if (Torch.CurrentSession.KeenSession.OnlineMode == MyOnlineModeEnum.OFFLINE &&
|
||||
promoteLevel < MyPromoteLevel.Admin)
|
||||
{
|
||||
|
@@ -68,6 +68,9 @@ namespace Torch.Server
|
||||
|
||||
public string LastUsedTheme { get; set; } = "Torch Theme";
|
||||
|
||||
public bool EnableReservedSlots { get; set; } = false;
|
||||
public HashSet<ulong> ReservedPlayers { get; set; } = new HashSet<ulong>();
|
||||
|
||||
[XmlIgnore]
|
||||
private string _path;
|
||||
|
||||
|
Reference in New Issue
Block a user