From 2f43ad9a3ea429300ab932fe5077ce468c4dee5e Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Wed, 5 Jul 2017 12:56:18 -0400 Subject: [PATCH] Update deposit method for Vault --- src/main/java/me/blackvein/quests/Quest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quest.java b/src/main/java/me/blackvein/quests/Quest.java index 3a98890ea..73b471f77 100644 --- a/src/main/java/me/blackvein/quests/Quest.java +++ b/src/main/java/me/blackvein/quests/Quest.java @@ -6,6 +6,7 @@ import java.util.LinkedList; import java.util.List; import java.util.Map; +import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.entity.Player; @@ -308,7 +309,7 @@ public class Quest { player.giveExp(lb.getExp()); } if (lb.getMoney() > 0) { - Quests.economy.depositPlayer(player.getName(), lb.getMoney()); + Quests.economy.depositPlayer(Bukkit.getOfflinePlayer(player.getUniqueId()), lb.getMoney()); } if (lb.getItemList().isEmpty() == false) { phatLootItems.addAll(lb.getItemList());