diff --git a/src/main/java/fr/communaywen/core/economy/EconomyManager.java b/src/main/java/fr/communaywen/core/economy/EconomyManager.java index cddb8b07..02f4ae54 100644 --- a/src/main/java/fr/communaywen/core/economy/EconomyManager.java +++ b/src/main/java/fr/communaywen/core/economy/EconomyManager.java @@ -41,7 +41,7 @@ public void addBalance(UUID player, double amount) { balances.put(player, getBalance(player) + amount); saveBalances(player); - if (Bukkit.getPlayer(player).isOnline()) { + if (Bukkit.getOfflinePlayer(player).isOnline()) { for (QUESTS quests : QUESTS.values()) { PlayerQuests pq = QuestsManager.getPlayerQuests(player); if (quests.getType() == TYPE.MONEY) {