Skip to content

Commit

Permalink
Organise map config paths alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none committed Jul 27, 2024
1 parent c2554a0 commit 3fd7d42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RetakesPlugin/RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public void OnCommandMapConfigs(CCSPlayerController? player, CommandInfo command

var files = Directory.GetFiles(mapConfigDirectory);

// organise files alphabetically
Array.Sort(files);

if (!Directory.Exists(mapConfigDirectory) || files.Length == 0)
{
commandInfo.ReplyToCommand($"{MessagePrefix}No map configs found.");
Expand Down

0 comments on commit 3fd7d42

Please sign in to comment.