tyrantelf/gmod-mapvote

Suggestion: Map Whitelist

Closed this issue · 1 comments

Lets say I want to do a DM server. I have many maps, all with different extensions. Some may be "gm" some may be "dm", ect. But not all of the maps with those extensions will work. So something like

gamemode: "gamemode name"
/// allowed maps
gm_headlong
gm_sandtrap
ttt_clue_se
de_dust

Instead of adding just the prefixes, add the entire map name (or any portion of it) to the prefix list. The check isn't necessarily just for prefixes, it looks for the starting portion of the maps. prefixes are just the most common use for it.