Show mapvote options in broadcast

This commit is contained in:
Thomas Smyth 2020-07-14 19:45:00 +01:00
parent 0f1cb9a347
commit cb721baaf3

View File

@ -53,8 +53,9 @@ export default function(server, options = {}) {
});
await server.rcon.broadcast(
`A new map vote has started. Participate in the map vote by typing "!mapvote help" in chat.`
`A new map vote has started. Participate in the map vote by typing "!mapvote help" in chat. Map options to follow...`
);
await server.rcon.broadcast(mapvote.squadLayerFilter.getLayerNames().map((layerName, key) => `${key+1} - ${layerName}`).join(', '));
}
return;
}
@ -78,8 +79,9 @@ export default function(server, options = {}) {
});
await server.rcon.broadcast(
`A new map vote has started. Participate in the map vote by typing "!mapvote help" in chat.`
`A new map vote has started. Participate in the map vote by typing "!mapvote help" in chat. Map options to follow...`
);
await server.rcon.broadcast(mapvote.squadLayerFilter.getLayerNames().map((layerName, key) => `${key+1} - ${layerName}`).join(', '));
return;
}