Based off of libraryaddict's SimpleHungerGames plugin.