Update Vault methods

This commit is contained in:
HappyPikachu 2017-07-05 13:01:16 -04:00
parent 419463a6dd
commit 8ab76338f1

View File

@ -178,10 +178,9 @@ public class Quest {
return testRequirements(quester.getPlayer()); return testRequirements(quester.getPlayer());
} }
@SuppressWarnings("deprecation")
public boolean testRequirements(Player player) { public boolean testRequirements(Player player) {
Quester quester = plugin.getQuester(player.getUniqueId()); Quester quester = plugin.getQuester(player.getUniqueId());
if (moneyReq != 0 && Quests.economy.getBalance(player.getName()) < moneyReq) { if (moneyReq != 0 && Quests.economy.getBalance(Bukkit.getOfflinePlayer(player.getUniqueId())) < moneyReq) {
return false; return false;
} }
PlayerInventory inventory = player.getInventory(); PlayerInventory inventory = player.getInventory();