mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
Added default Maps in the config
This commit is contained in:
@@ -45,6 +45,9 @@ namespace CS2_SimpleAdmin
|
||||
[JsonPropertyName("Discord")]
|
||||
public Discord Discord { get; set; } = new Discord();
|
||||
|
||||
[JsonPropertyName("DefaultMaps")]
|
||||
public List<string> DefaultMaps { get; set; } = new List<string>();
|
||||
|
||||
[JsonPropertyName("WorkshopMaps")]
|
||||
public List<string> WorkshopMaps { get; set; } = new List<string>();
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CS2_SimpleAdmin.Menus
|
||||
CenterHtmlMenu menu = new CenterHtmlMenu($"Change Map");
|
||||
List<ChatMenuOptionData> options = new();
|
||||
|
||||
string[] maps = Server.GetMapList();
|
||||
List<string> maps = CS2_SimpleAdmin.Instance.Config.DefaultMaps;//Server.GetMapList();
|
||||
foreach (string map in maps)
|
||||
{
|
||||
options.Add(new ChatMenuOptionData(map, () => ExecuteChangeMap(admin, map, false)));
|
||||
|
||||
Reference in New Issue
Block a user