NEW 📢 Limited launch offer: up to 70% off your first month on every game!See plans

How to set up map votes and vote rules on your DDNet server

DDNet (DDraceNetwork)Updated Oct 23, 20264 min read

Players call votes from the vote menu in the game. A new server already offers a vote for every map in data/maps and a few options. Change the list and the vote rules with lines in myServerconfig.cfg under Files, then restart the server.

The votes a new server has

  • A vote for every map in data/maps, the maps that come with DDNet and yours. A map you upload joins this list at the next start.
  • Options that come with DDNet: normal, moon and no gravity, and Option: Reset server, which runs the game's start file again.
  • No vote to shut the server down. PlayNHost removes DDNet's "Shutdown server" vote, so players cannot vote your server off.

To offer a newly uploaded map before the next restart, use the raised-hand button on the Maps page: How to switch the map or add map votes on your DDNet server.

Add your own votes

Add an add_vote line to myServerconfig.cfg: the text players see, then the command it runs, both in quotes.

add_vote "Event map: Gold Mine" "change_map \"Gold Mine\""
add_vote "Option: Reload the map" "reload"

Inside the command, put \" around a map name with spaces. Each vote text must be different from every other vote, including the Map: votes the server makes for each map.

How to edit the file: How to add your own settings to your DDNet server.

Remove votes

  • One vote: remove_vote "Option: Moon gravity", with the exact vote text.
  • Every vote: clear_votes, the map votes included. Put it before your own add_vote lines, so your list is the only one. Add a line add_map_votes after it if you still want a vote for every map.

In the Console, votes lists the votes the server has now.

Vote rules

LineWhat it doesDDNet's default
sv_vote_kick 0Stops kick votes. 1 allows them.1
sv_vote_kick_bantime 5Minutes a player kicked by vote is banned. 0 kicks without a ban.5
sv_vote_kick_min 3Players needed on the server before a kick vote can start.0
sv_vote_spectate 0Stops votes that move a player to the spectators.1
sv_vote_time 25Seconds a vote lasts.25
sv_vote_yes_percentage 50More than this percent must vote yes.50
sv_vote_delay 3Seconds between any two votes.3
sv_vote_map_delay 0Seconds between two map votes.0
sv_rcon_vote 1Only staff logged in with F2 can call votes.0
sv_map_vote 0Turns off /map, the chat command to vote a map by name.1

Ending a vote yourself

While a vote runs, type vote yes or vote no in the Console to end it with that result. Moderators can force a vote with force_vote.

Good to know

Already hosting it somewhere else? Move your server to us

CREATE YOUR GAME SERVER
READY TO GET STARTED?

Save up to 30% on your new game server.
Premium performance, instant activation, and unbeatable reliability all at a better price.

OUR LATEST BLOGS