@EventHandler
	public void onAsyncPlayerChat(AsyncPlayerChatEvent event) {

		event.getPlayer().setDisplayName(event.getPlayer().getName());
		
		int rank = 0;
		
		try {
			rank = HyperPVP.getStorage().readInt32("SELECT rank FROM users WHERE username = '" + event.getPlayer().getName() + "'");
		} catch (SQLException e) {
			e.printStackTrace();	
		}
		
		String prefix = "";
		
		if (rank == 2) {
			prefix = ChatColor.YELLOW + "*";
		}
		
		if (rank == 3) {
			prefix = ChatColor.DARK_BLUE + "*";
		}
		
		if (rank == 4) {
			prefix = ChatColor.DARK_GREEN + "*";
		}
		
		if (rank == 5) {
			prefix = ChatColor.DARK_RED + "*";
		}

		if (HyperPVP.getGameSessions().containsKey(event.getPlayer().getName())) {
			Session game = HyperPVP.getSession(event.getPlayer());
			ChatColor team = game.getTeam().getColor();
			event.setFormat(team + "[Team] " + prefix + team + event.getPlayer().getName() + ChatColor.RESET + ": " + event.getMessage());
			
		} else if (HyperPVP.getTeamCycle().containsKey(event.getPlayer())) {
			
			ChatColor team = HyperPVP.getTeamCycle().get(event.getPlayer());
			event.setFormat(team + "[Team] " + prefix + team + event.getPlayer().getName() + ChatColor.RESET + ": " + event.getMessage());
		} else {
			
			ChatColor team = ChatColor.AQUA;
			event.setFormat("<" + prefix + team + event.getPlayer().getName() + ChatColor.RESET + ">: " + event.getMessage());
		}
	}