Create menu if multiple nom matches found (#983)

This change checks the nomination against the map arraylist. If the nomination matches multiple results, those results are then added to a menu to allow the client to select available maps. The maps added to the menu go against the same checks as the normal nomination menu and wont allow nomination of disabled maps.

Example image of /nominate jump_b
https://i.imgur.com/ZdzB0gk.png

If reply source is console, menus wont be generated and it will attempt to nominate as normal.
This commit is contained in:
JoinedSenses
2019-08-01 13:48:10 +01:00
committed by Asher Baker
parent 22635d8d35
commit b8fd7db58d
2 changed files with 131 additions and 66 deletions
-2
View File
@@ -3,7 +3,6 @@
"Already Nominated"
{
"en" "You have already nominated a map."
}
"Max Nominations"
@@ -11,7 +10,6 @@
"en" "The maximum allowed nominations has been reached."
}
"Map Already In Vote"
{
"#format" "{1:s}"