Hello, I am currently trying to develop a plugin for my server but I need some help on an in-game map changer where players can vote for a map they want to play on and the server loads up the map in-game. If anyone has something that may help, please leave it in the comments. Thanks
I would keep a HashMap of String and Integer for the maps and the number of votes: Code:java HashMap<String, Integer> votes = new HashMap<String, Integer>();//When they voteString mapName = <the map that they voted for>;int numVotes = votes.get(mapName);votes.put(mapName, numVotes + 1);