public void update(String item) {
System.out.println("Hello World");
}
});
final InformationBrokerUtil util = new InformationBrokerUtil(plugin);
util.subscribeAll(new InformationListener<Void>() {;
@Override
public void update(Void item) {
System.out.println("Got both");
System.out.println(item);
System.out.println(util.get(TestItemA.class));
System.out.println(util.get(TestItemB.class));
System.out.println(util.get(TestItemA.class));
System.out.println(util.get(TestItemB.class));
}
}, TestItemA.class, TestItemB.class);
System.out.println("1");
plugin.publish(TestItemA.class, "A) Hello");