mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-14 19:30:01 +01:00
Update queue (#1477)
This commit is contained in:
@@ -145,7 +145,7 @@ namespace Content.Server.Connection
|
||||
}
|
||||
|
||||
// Corvax-Queue-Start
|
||||
var isQueueEnabled = _cfg.GetCVar(CCCVars.QueueEnabled);
|
||||
var isQueueEnabled = IoCManager.Instance!.TryResolveType<IServerJoinQueueManager>(out var mgr) && mgr.IsEnabled;
|
||||
if (_plyMgr.PlayerCount >= _cfg.GetCVar(CCVars.SoftMaxPlayers) && !isPrivileged && !isQueueEnabled)
|
||||
// Corvax-Queue-End
|
||||
{
|
||||
|
||||
@@ -9,16 +9,6 @@ namespace Content.Shared.Corvax.CCCVars;
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public sealed class CCCVars
|
||||
{
|
||||
/*
|
||||
* Queue
|
||||
*/
|
||||
|
||||
/// <summary>
|
||||
/// Controls if the connections queue is enabled. If enabled stop kicking new players after `SoftMaxPlayers` cap and instead add them to queue.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool>
|
||||
QueueEnabled = CVarDef.Create("queue.enabled", false, CVar.SERVERONLY);
|
||||
|
||||
/**
|
||||
* TTS (Text-To-Speech)
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
|
||||
public interface IServerJoinQueueManager
|
||||
{
|
||||
public bool IsEnabled { get; }
|
||||
public int PlayerInQueueCount { get; }
|
||||
public int ActualPlayersCount { get; }
|
||||
public void Initialize();
|
||||
public void PostInitialize();
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ time = 180.0
|
||||
|
||||
[queue]
|
||||
enabled = true
|
||||
alt_servers = true
|
||||
|
||||
[tts]
|
||||
enabled = true
|
||||
|
||||
@@ -17,6 +17,7 @@ time = 180.0
|
||||
|
||||
[queue]
|
||||
enabled = true
|
||||
alt_servers = true
|
||||
|
||||
[tts]
|
||||
enabled = true
|
||||
|
||||
@@ -11,6 +11,7 @@ time = 10.0
|
||||
|
||||
[queue]
|
||||
enabled = true
|
||||
alt_servers = true
|
||||
|
||||
[tts]
|
||||
enabled = true
|
||||
|
||||
@@ -11,6 +11,7 @@ time = 180.0
|
||||
|
||||
[queue]
|
||||
enabled = true
|
||||
alt_servers = true
|
||||
|
||||
[tts]
|
||||
enabled = true
|
||||
|
||||
@@ -17,6 +17,7 @@ time = 10.0
|
||||
|
||||
[queue]
|
||||
enabled = true
|
||||
alt_servers = true
|
||||
|
||||
[tts]
|
||||
enabled = true
|
||||
|
||||
@@ -17,6 +17,7 @@ time = 180.0
|
||||
|
||||
[queue]
|
||||
enabled = true
|
||||
alt_servers = true
|
||||
|
||||
[tts]
|
||||
enabled = true
|
||||
|
||||
@@ -3,3 +3,7 @@ queue-quit = Выйти
|
||||
queue-position = Ваша позиция:
|
||||
queue-total = Всего в очереди:
|
||||
queue-priority-join = Приоритетный вход
|
||||
queue-server-title = Вы можете подключиться к:
|
||||
queue-server-not-available = Нет доступных серверов
|
||||
queue-server-online = Онлайн:
|
||||
queue-server-connect = Подключиться
|
||||
|
||||
2
Secrets
2
Secrets
Submodule Secrets updated: 3527f47c1e...9851c2c639
Reference in New Issue
Block a user