@EventHandler
	public void OnGameQuit(GameQuitEvent event){
		String pName = event.getPlayerName();
		Player p = event.getPlayer();
		if (plugin.PlayersInGame.contains(pName))
		{
			plugin.PlayersInGame.remove(pName);
			if (plugin.sbHandler.badTeam != null && plugin.sbHandler.goodTeam != null)
			{
				if (plugin.sbHandler.badTeam.hasPlayer(p))
				{
					if (plugin.sbHandler.badTeam.getPlayers().size() == 1)
					{
						plugin.sbHandler.badTeam.removePlayer(p);
						GameEndEvent e = new GameEndEvent(plugin.PlayersInGame);
						plugin.getServer().getPluginManager().callEvent(e);
					}
				}
				else if (plugin.sbHandler.goodTeam.hasPlayer(p))
				{
					if (plugin.sbHandler.goodTeam.getPlayers().size() == 1)
					{
						plugin.sbHandler.goodTeam.removePlayer(p);
						GameEndEvent e = new GameEndEvent(plugin.PlayersInGame);
						plugin.getServer().getPluginManager().callEvent(e);
					}
				}
			}
			if (plugin.sbHandler.manager != null)
			{
				p.setScoreboard(plugin.sbHandler.manager.getNewScoreboard());
			}
		}
		if(plugin.PlayersInGame.size() <= 1){
			GameEndEvent e = new GameEndEvent(plugin.PlayersInGame);
			plugin.getServer().getPluginManager().callEvent(e);
		}
	}