Merge branch 'feature/quests' of github.com:Mineplex-LLC/Minecraft-PC into feature/quests
This commit is contained in:
commit
aaf4be1dc2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user