mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-24 01:02:00 +01:00
Suppress error from lack of player data on login
This commit is contained in:
parent
857b580278
commit
09cf625a8a
@ -850,6 +850,9 @@ public class PlayerListener implements Listener {
|
||||
final CompletableFuture<Quester> cf = plugin.getStorage().loadQuesterData(evt.getPlayer().getUniqueId());
|
||||
try {
|
||||
final Quester quester = cf.get();
|
||||
if (quester == null) {
|
||||
return;
|
||||
}
|
||||
for (final Quest q : quester.getCompletedQuests()) {
|
||||
if (q != null) {
|
||||
if (!quester.getCompletedTimes().containsKey(q) && q.getPlanner().getCooldown() > -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user