From f8eb6363c276cb0bbe4ef663b5da636d1cff479a Mon Sep 17 00:00:00 2001 From: MrDave1999 Date: Sat, 26 Oct 2024 19:06:05 -0500 Subject: [PATCH] refactor: Update maximum value of top players --- src/Application/Common/Resources/Messages.Designer.cs | 2 +- src/Application/Common/Resources/Messages.resx | 2 +- src/Application/Players/TopPlayers/Models/MaxTopPlayers.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Application/Common/Resources/Messages.Designer.cs b/src/Application/Common/Resources/Messages.Designer.cs index a4b0584f..56dadac8 100644 --- a/src/Application/Common/Resources/Messages.Designer.cs +++ b/src/Application/Common/Resources/Messages.Designer.cs @@ -313,7 +313,7 @@ internal static string InvalidMap { } /// - /// Looks up a localized string similar to The maximum number of players must be between 5 to 50. + /// Looks up a localized string similar to The maximum number of players must be between 5 to 15. /// internal static string InvalidMaxTopPlayers { get { diff --git a/src/Application/Common/Resources/Messages.resx b/src/Application/Common/Resources/Messages.resx index 7ab0d69a..d05496b3 100644 --- a/src/Application/Common/Resources/Messages.resx +++ b/src/Application/Common/Resources/Messages.resx @@ -202,7 +202,7 @@ Invalid map id has been passed - The maximum number of players must be between 5 to 50 + The maximum number of players must be between 5 to 15 Must be 3-20 characters long and only contain valid characters (0-9, a-z, A-Z, [], (), $, @ . _ and = only) diff --git a/src/Application/Players/TopPlayers/Models/MaxTopPlayers.cs b/src/Application/Players/TopPlayers/Models/MaxTopPlayers.cs index df34ba82..9ffd5f99 100644 --- a/src/Application/Players/TopPlayers/Models/MaxTopPlayers.cs +++ b/src/Application/Players/TopPlayers/Models/MaxTopPlayers.cs @@ -17,7 +17,7 @@ public class MaxTopPlayers /// The desired maximum number of players. public static Result Create(int value) { - if (value < 5 || value > 50) + if (value < 5 || value > 15) return Result.Failure(Messages.InvalidMaxTopPlayers); return Result.Success(new MaxTopPlayers(value));