diff --git a/Content.Server/Voting/VoteCommands.cs b/Content.Server/Voting/VoteCommands.cs index 25cd259031..cbc16e80b1 100644 --- a/Content.Server/Voting/VoteCommands.cs +++ b/Content.Server/Voting/VoteCommands.cs @@ -19,17 +19,19 @@ using Robust.Shared.Console; namespace Content.Server.Voting { - [AnyCommand] + [AdminCommand(AdminFlags.Admin)] // WD MODIFICATION public sealed class CreateVoteCommand : IConsoleCommand { [Dependency] private readonly IAdminLogManager _adminLogger = default!; + public string Command => "createvote"; public string Description => Loc.GetString("cmd-createvote-desc"); public string Help => Loc.GetString("cmd-createvote-help"); public void Execute(IConsoleShell shell, string argStr, string[] args) { + if (args.Length != 1) { shell.WriteError(Loc.GetString("shell-need-exactly-one-argument"));