mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-24 01:23:52 -06:00
chore: added endmatch command
This commit is contained in:
parent
73c3166912
commit
ab3c03563e
@ -15,6 +15,7 @@ The `MapVote` plugin for squad js based on the original version https://github.c
|
|||||||
- `!vote end` - Gently ends the current vote and announces the winner layer
|
- `!vote end` - Gently ends the current vote and announces the winner layer
|
||||||
- `!vote restart` - Restarts voting with 6 random maps and modes
|
- `!vote restart` - Restarts voting with 6 random maps and modes
|
||||||
- `!vote broadcast` - Broadcasts current voting results - happens every 7m automatically
|
- `!vote broadcast` - Broadcasts current voting results - happens every 7m automatically
|
||||||
|
- `!vote endmatch` - Ends the current match
|
||||||
|
|
||||||
##### Vote by modes
|
##### Vote by modes
|
||||||
- `!vote start *_raas` - Starts a vote with 6 layers, all RAAS
|
- `!vote start *_raas` - Starts a vote with 6 layers, all RAAS
|
||||||
|
@ -436,6 +436,10 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
}
|
}
|
||||||
this.broadcastNominations();
|
this.broadcastNominations();
|
||||||
return;
|
return;
|
||||||
|
case "endmatch":
|
||||||
|
if (!isAdmin) return;
|
||||||
|
this.server.rcon.execute(`AdminEndMatch`)
|
||||||
|
return;
|
||||||
case "help": //displays available commands
|
case "help": //displays available commands
|
||||||
let msg = "";
|
let msg = "";
|
||||||
msg += (`!vote\n > choices\n > results\n`);
|
msg += (`!vote\n > choices\n > results\n`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user