public static void setPlayerAFK( String player, boolean sendGlobal, boolean hasDisplayPerm ) {
        BSPlayer p = getPlayer( player );
        if ( !p.isAFK() ) {
            p.setAFK( true );
            if ( sendGlobal ) {
                sendBroadcast( Messages.PLAYER_AFK.replace( "{player}", p.getDisplayingName() ) );
            } else {
                sendServerMessage( p.getServer(), Messages.PLAYER_AFK.replace( "{player}", p.getDisplayingName() ) );
            }
            if ( hasDisplayPerm ) {
                p.setTempName( Messages.AFK_DISPLAY + p.getDisplayingName() );
            }
        } else {
            p.setAFK( false );
            if ( hasDisplayPerm ) {
                p.revertName();
            }
            if ( sendGlobal ) {
                sendBroadcast( Messages.PLAYER_NOT_AFK.replace( "{player}", p.getDisplayingName() ) );
            } else {
                sendServerMessage( p.getServer(), Messages.PLAYER_NOT_AFK.replace( "{player}", p.getDisplayingName() ) );
            }
        }

    }