Add even more new stuff

This commit is contained in:
IonicCheese 2026-02-19 11:53:10 -08:00
commit 42663612a2
4 changed files with 36 additions and 21 deletions

View file

@ -44,11 +44,10 @@ core.register_chatcommand("list_maps", {
privs = {match_manager = true},
description = "List all maps",
func = function()
local maps = core.get_dir_list(core.get_modpath("maps") .. "/maps", true)
local map_list = "Available maps:\n"
for _, map in pairs(maps) do
map_list = map_list .. map .. "\n"
local list_string = "Available maps:\n"
for _, map in pairs(map_list) do
list_string = list_string .. map .. "\n"
end
return true, map_list .. "\nUse /start <map> to start a match."
return true, list_string .. "\nUse /start <map> to start a match."
end
})