declare this variable
add this methodCode:private int staffOn
add this to process (or somewhere else you want)Code:public void getStaffOn() { for (Player p : PlayerHandler.players) { if (p != null && playerRights > 0 && playerRights != 4) staffOn++; } }
Not 100% sure this works. Haven't tested.Code:getStaffOn(); getPA().sendFrame126("Staff Online: "+staffOn+" ", 29167);