public static void refreshListeners() {
		EventManager evt = getEventManager();
		if (evt == null) {
			System.out.println("Could not add listeners to event manager");
			return;
		}
		evt.addListener(self);
		if (Script.paint != null) {
			evt.addListener(Script.paint);
		}
		if (Script.motion != null) {
			evt.addListener(Script.motion);
		}
		if (Script.mouse != null) {
			evt.addListener(Script.mouse);
		}
		if (Script.paintMotion != null) {
			evt.addListener(Script.paintMotion);
		}
		if (Script.paintMouse != null) {
			evt.addListener(Script.paintMouse);
		}
		for (EventListener e : listeners) {
			evt.addListener(e);
		}
	}