using Content.Server.GameTicking.Events;
using Content.Server.Ghost;
using Content.Server.Maps;
-using Content.Server.Voting.Managers;
using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.GameTicking;
using Content.Shared.Mind;
using Content.Shared.Players;
using Content.Shared.Preferences;
-using Content.Shared.Voting;
using JetBrains.Annotations;
using Prometheus;
using Robust.Server.Maps;
{
[Dependency] private readonly DiscordWebhook _discord = default!;
[Dependency] private readonly ITaskManager _taskManager = default!;
- [Dependency] private readonly IVoteManager _voteManager = default!;
private static readonly Counter RoundNumberMetric = Metrics.CreateCounter(
"ss14_round_number",
SendStatusToAll();
UpdateInfoText();
- if (_configurationManager.GetCVar(CCVars.GameAutoMapVote))
- {
- _voteManager.CreateStandardVote(null, StandardVoteType.Map);
- }
-
ReqWindowAttentionAll();
}
}
public static readonly CVarDef<bool> DebugCoordinatesAdminOnly =
CVarDef.Create("game.debug_coordinates_admin_only", true, CVar.SERVER | CVar.REPLICATED);
- /// <summary>
- /// Controls if lobby has an automatic map vote.
- /// </summary>
- public static readonly CVarDef<bool>
- GameAutoMapVote = CVarDef.Create("game.lobby_auto_map_vote", true, CVar.ARCHIVE | CVar.SERVERONLY);
-
#if EXCEPTION_TOLERANCE
/// <summary>
/// Amount of times round start must fail before the server is shut down.
[game]
desc = "Official English Space Station 14 servers. Vanilla, low roleplay."
lobbyenabled = true
-lobby_auto_map_vote = false
soft_max_players = 80
panic_bunker.enabled = true
panic_bunker.disable_with_admins = true