Skip to content

Commit 9704e84

Browse files
committed
Change final scores on forfeit to be MR13. (#303)
Remove some hanging references to G5WS. Update error message for `isGet5Available`.
1 parent 1f47d33 commit 9704e84

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/routes/legacy/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const keyCheck = (request: Request<ParamsDictionary, any, any, ParsedQs, Record<
139139
*
140140
* /match/:match_id/finish:
141141
* post:
142-
* description: Finalizes the match. Called from the G5WS plugin.
142+
* description: Finalizes the match.
143143
* produces:
144144
* - application/json
145145
* parameters:

src/routes/matches/matchserver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ router.get(
9696
start_time: new Date().toISOString().slice(0, 19).replace("T", " "),
9797
end_time: new Date().toISOString().slice(0, 19).replace("T", " "),
9898
winner: teamIdWinner,
99-
team1_score: req.params.winner_id == "1" ? 16 : 0,
100-
team2_score: req.params.winner_id == "2" ? 16 : 0,
99+
team1_score: req.params.winner_id == "1" ? 13 : 0,
100+
team2_score: req.params.winner_id == "2" ? 13 : 0,
101101
match_id: req.params.match_id,
102102
};
103103
let matchUpdateStmt: MatchData = {

src/utility/serverrcon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ class ServerRcon {
7575
if (compare(get5Version, "0.13.1", ">=")) {
7676
return true;
7777
} else {
78-
console.log("Either get5 or G5WS plugin is missing.");
78+
console.log("Either get5, MatchZy, or PugSharp plugin is missing.");
7979
return false;
8080
}
8181
}
8282
let get5JsonStatus = await JSON.parse(get5Status);
8383
if (get5JsonStatus.gamestate != 0) {
84-
console.log("Server already has a get5 match setup.");
84+
console.log("Server already has a match setup.");
8585
return false;
8686
} else {
8787
return true;

0 commit comments

Comments
 (0)