Merge branch 'feature/quests' of github.com:Mineplex-LLC/Minecraft-PC into feature/quests

This commit is contained in:
Sarah 2017-06-01 20:59:53 +02:00
commit aaf4be1dc2

View File

@ -57,6 +57,9 @@ public class RedisQuestSupplier implements QuestSupplier
_quests.clear();
_quests.addAll(deserialize(message));
System.out.println("[QUEST-SUPPLIER] Quest update received from daemon, active quests: ");
_quests.forEach(q -> System.out.println("[QUEST-SUPPLIER] " + q.toString()));
// notify
_plugin.getServer().getPluginManager().callEvent(new QuestsUpdatedEvent(get()));
}
@ -73,6 +76,7 @@ public class RedisQuestSupplier implements QuestSupplier
private void requestActiveQuests()
{
System.out.println("[QUEST-SUPPLIER] Requesting active quests from QuestDaemon");
// request current active quests, send server unique id so we can send a response just to this server
_pubSub.publish(PubSubChannels.QUEST_REQUEST_BASE, _serverUniqueId);
}