From 6e7d6d0b3a6e5d2aa8aaefe311b536f192bad697 Mon Sep 17 00:00:00 2001 From: Aria Date: Sat, 14 Dec 2019 03:41:46 +0100 Subject: [PATCH] Stats are now reloaded when a player logs in (This build hasn't been tested at all and might be unstable!) --- src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java b/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java index ed2be513..186d7daf 100644 --- a/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java +++ b/src/main/java/net/Indyuce/mmocore/listener/PlayerListener.java @@ -32,7 +32,7 @@ public class PlayerListener implements Listener { @EventHandler(priority = EventPriority.LOWEST) public void a(PlayerJoinEvent event) { Player player = event.getPlayer(); - PlayerData.setup(player).setPlayer(player); + PlayerData pd = PlayerData.setup(player).setPlayer(player); pd.getStats().updateAll(); } /*