@Override
	public boolean registerParser(Class<? extends IPacketParser> parser) {
		Object object = null;
		try {
			object = parser.newInstance();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		ParsesPacket annotation = parser.getAnnotation(ParsesPacket.class);
		if (annotation != null) {
			for (int packetId : annotation.value()) {
				parsers.put(packetId, (IPacketParser) object);
			}
			return true;
		}
		return false;
	}