mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 19:54:25 -05:00
Show mapvote options in broadcast
This commit is contained in:
parent
0f1cb9a347
commit
cb721baaf3
@ -53,8 +53,9 @@ export default function(server, options = {}) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await server.rcon.broadcast(
|
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;
|
return;
|
||||||
}
|
}
|
||||||
@ -78,8 +79,9 @@ export default function(server, options = {}) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await server.rcon.broadcast(
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user