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));