This commit is contained in:
shoopea 2024-10-29 20:17:31 +01:00
parent c96cf2e93e
commit e9182933ca

View File

@ -14,7 +14,7 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
const team1 = req.body.team1; const team1 = req.body.team1;
const team2 = req.body.team2; const team2 = req.body.team2;
const selected_map = req.body.selectedMap; const selected_map = req.body.selectedMap;
const game_sel = req.body.game_mode.toString(); const game_sel = req.body.game_sel.toString();
if (team1.trim() != "") { if (team1.trim() != "") {
await rcon.execute_command(server_id, `mp_teamname_1 "${team1}"`); await rcon.execute_command(server_id, `mp_teamname_1 "${team1}"`);