public synchronized void register(RegisteredListener listener) {
		if (muffinbag.get(listener.getPriority()).contains(listener))
			throw new IllegalStateException("This listener is already registered!");
		events = null;
		muffinbag.get(listener.getPriority()).add(listener);
	}