public static void setPlayersNickname( String p, String nick ) throws SQLException {
        if ( isPlayerOnline( p ) ) {
            getPlayer( p ).setNickname( nick );
            getPlayer( p ).updateDisplayName();
            getPlayer( p ).updatePlayer();
        }
        if ( nick == null ) {
            SQLManager.standardQuery( "UPDATE BungeePlayers SET nickname =NULL WHERE playername ='" + p + "'" );
        } else {
            SQLManager.standardQuery( "UPDATE BungeePlayers SET nickname ='" + nick + "' WHERE playername ='" + p + "'" );
        }
    }