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.clear();
|
||||||
_quests.addAll(deserialize(message));
|
_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
|
// notify
|
||||||
_plugin.getServer().getPluginManager().callEvent(new QuestsUpdatedEvent(get()));
|
_plugin.getServer().getPluginManager().callEvent(new QuestsUpdatedEvent(get()));
|
||||||
}
|
}
|
||||||
@ -73,6 +76,7 @@ public class RedisQuestSupplier implements QuestSupplier
|
|||||||
|
|
||||||
private void requestActiveQuests()
|
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
|
// 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);
|
_pubSub.publish(PubSubChannels.QUEST_REQUEST_BASE, _serverUniqueId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user