// Command is admin announce else if (command.startsWith("admin_announce")) { // Call method from another class Announcements sys = new Announcements(); command +=" ["+activeChar.getName()+"]"; sys.handleAnnounce(command, 15); }