diff --git a/public/js/console.js b/public/js/console.js index fbb26db..073f1eb 100644 --- a/public/js/console.js +++ b/public/js/console.js @@ -239,6 +239,7 @@ $(document).ready(function () { map_list.push("de_ancient"); map_list.push("de_ancient_night"); map_list.push("de_anubis"); + map_list.push("de_cache"); map_list.push("de_dust2"); map_list.push("de_inferno"); map_list.push("de_mirage"); diff --git a/routes/game.js b/routes/game.js index c245693..bfc012a 100644 --- a/routes/game.js +++ b/routes/game.js @@ -140,7 +140,7 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => { }, 1000) } else if (game == "7") { setTimeout(() => { - execute_cfg_on_server(server_id, 'mp_restartgame 3'); + rcon.execute_command(server_id, 'mp_restartgame 3'); }, 1000) }