public void setupListener() {
if (menuListenerStarted) {
return;
}
menuListenerStarted = true;
methods.bot.getEventManager().addListener(new PaintListener() {
public void onRepaint(final Graphics g) {
synchronized (menuCacheLock) {
menuOptionsCache = getOptions();
menuActionsCache = getActions();
}