I managed to integrate necessary changes for vote setnextmap but I noticed one problem in code. It's from voting.php (MAM 0.11), function votePassed, case "setnextmap".
if (!$this->mod->rconSetNextMap($this->voteparameters, "sd", true))...
I think "sd" is wrong, maybe some variable "gametype" goes here ?
Also, it would be nice to see this message if vote passes (from main.lng): setNextMap = "^2Next map was set to ^7<MAP> (<GAMETYPE>)"
Hi, I'm the guilty one here. See this post where I introduced the feature to MAM 0.10.1. You're right, that should have been a variable. I only play SD and when I released the code I forgot I had hard-coded game type I'll see if I can fix that up this weekend. I'll post it to that thread then. I also screwed up the setting of the default variable as you can see from various threads.