From 40fdcc4f28be36db41a2e0ba27b888e3d86b2906 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sat, 14 Aug 2021 14:31:13 +0200 Subject: [PATCH] !changed event prior --- .../net/Indyuce/mmocore/listener/PlayerListener.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java b/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java index 2609a0a0..15f2b825 100644 --- a/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java +++ b/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java @@ -22,8 +22,13 @@ import org.bukkit.event.player.PlayerQuitEvent; public class PlayerListener implements Listener { - // Player data loading - @EventHandler(priority = EventPriority.NORMAL) + /* + * Load player data. Event priority is set to LOW as most plugins + * do not change their priority which is NORMAL by default. Making + * it low is important because MMOCore is a core plugin so other plugins + * might rely on its data on startup. + */ + @EventHandler(priority = EventPriority.LOW) public void playerLoadingEvent(PlayerJoinEvent event) { MMOCore.plugin.dataProvider.getDataManager().setup(event.getPlayer().getUniqueId()); }