OMGPIDocs

OMGPI

Source

JavaDocs

SpigotMC

VoteSystem

VoteSystem is an OMGPI system that controls map loading and prelobby scoreboard. When it loads it gets 5 random maps to load. Then it allows map voting. When someone votes (in /options or with /v #) that vote is saved. If countdown gets to 10 seconds or someone uses /setmap, voting is disallowed and most voted map (in case of /setmap, map that has been set) is loaded. If 2 maps have same amount of votes, first one is selected.