@@ -0,0 +1,1289 @@
+package com.gabrielsimmer;%0A%0Aimport java.util.Collection;%0A%0Aimport org.bukkit.Bukkit;%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.Listener;%0Aimport org.bukkit.event.player.PlayerQuitEvent;%0A%0Aimport com.gabrielsimmer.nitroUHC.importantVars;%0A%0Apublic class haveIWon implements Listener%7B%0A%0A%09nitroUHC plugin;%0A%0A%09public haveIWon(nitroUHC passedPlugin)%7B%0A%09%09this.plugin = passedPlugin;%0A%09%7D%0A%0A%0A%09@EventHandler%0A%09public void onPlayerLeave(PlayerQuitEvent event)%7B%0A%09%09%0A%09%09String hubWorld = plugin.getConfig().getString(%22spawnWorld%22);%0A%09%09%0A%09%09int onlinePlayers = Bukkit.getOnlinePlayers().size();%0A%09%09String prefixString = plugin.getConfig().getString(%22prefix%22);%0A%09%09//Bukkit.broadcastMessage(String.valueOf(onlinePlayers));%0A%09%09if (onlinePlayers == 2 && importantVars.gameInProgress == true)%7B%0A%09%09%09importantVars.gameInProgress = false;%0A%09%09%09Bukkit.broadcastMessage(prefixString + ChatColor.GOLD + %22You've won UHC! Congrats!%22);%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%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.teleport(Bukkit.getWorld(hubWorld).getSpawnLocation());%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%7D%0A

Create haveIWon.java