@@ -0,0 +1,1982 @@
+package com.gabrielsimmer;%0A%0Aimport java.util.Collection;%0A%0Aimport org.bukkit.Bukkit;%0Aimport org.bukkit.Location;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.Listener;%0Aimport org.bukkit.event.player.PlayerJoinEvent;%0Aimport com.gabrielsimmer.nitroUHC.importantVars;%0A%0Apublic class joinGame implements Listener%7B%0A%0A%09nitroUHC plugin;%0A%09%0A%09public joinGame(nitroUHC passedPlugin)%7B%0A%09%09this.plugin = passedPlugin;%0A%09%7D%0A%09%0A%09%0A%09@EventHandler%0A%09public void onPlayerJoin(PlayerJoinEvent event)%7B%0A%09%09%0A%09%09for(Player all : Bukkit.getOnlinePlayers())%7B%0A%09%09%09  all.setScoreboard(plugin.board);%0A%09%09%09%7D%0A%09%09%0A%09%09int mP = plugin.getConfig().getInt(%22minPlayers%22);%0A%09%09Player player = event.getPlayer();%0A%09%09String prefixString = plugin.getConfig().getString(%22prefix%22);%0A%09%09int onlinePlayers = Bukkit.getServer().getOnlinePlayers().size();%0A%0A%09%09event.setJoinMessage(prefixString + player.getDisplayName() + %22 joined the game! Players: %22 + onlinePlayers + %22/%22 + mP);%0A%09%09%0A%09%09if (importantVars.gameInProgress != true && onlinePlayers != mP)%7B%0A%09%09%09player.sendMessage(prefixString + %22Please wait for the game to start! %22 + onlinePlayers + %22/%22 + mP);%0A%09%09%7D%0A%09%09if (importantVars.gameInProgress == true)%7B%0A%09%09%09//Hoping this doesn't break everything%0A%09%09%09player.kickPlayer(%22Game in progress!%22);%0A%09%09%7D%0A%0A%09%09if (onlinePlayers == mP && importantVars.gameInProgress == false)%7B%0A%09%09%09Bukkit.broadcastMessage(prefixString + %22UHC match starting!%22);%0A%0A%0A%09%09%09plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() %7B%0A%0A%09%09%09%09public void run() %7B%0A%0A%09%09%09%09%09importantVars.gameInProgress = true;%0A%0A%09%09%09%09%09Collection%3C? extends Player%3E players = Bukkit.getOnlinePlayers();%0A%0A%09%09%09%09%09for(Player p : players)%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09p.setHealth(p.getMaxHealth());%09%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09int x = (int) (Math.random() * 499);%0A%09%09%09%09%09%09int z = (int) (Math.random() * 499);%0A%09%09%09%09%09%09int y = importantVars.templateworld.getHighestBlockYAt(x, z);%0A%09%09%09%09%09%09p.teleport(new Location(importantVars.templateworld, x, y, z));%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D, 120L);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create joinGame.java