Skip to content

Commit

Permalink
Modify Custom Vote (Goob-Station#848)
Browse files Browse the repository at this point in the history
yuh
  • Loading branch information
Aidenkrz authored Nov 11, 2024
1 parent 5ce4652 commit 89de65d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Server/Voting/VoteCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ public sealed class CreateCustomCommand : LocalizedEntityCommands

private ISawmill _sawmill = default!;

private const int MaxArgCount = 10;
private const int MaxArgCount = 31;

public override string Command => "customvote";

public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_sawmill = Logger.GetSawmill("vote");

if (args.Length < 3 || args.Length > MaxArgCount)
if (args.Length < 2 || args.Length > MaxArgCount)
{
shell.WriteError(Loc.GetString("shell-need-between-arguments",("lower", 3), ("upper", 10)));
shell.WriteError(Loc.GetString("shell-need-between-arguments",("lower", 2), ("upper", 31)));
return;
}

Expand Down

0 comments on commit 89de65d

Please sign in to comment.