mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 11:38:42 +01:00
Update Vault methods
This commit is contained in:
parent
419463a6dd
commit
8ab76338f1
@ -178,10 +178,9 @@ public class Quest {
|
||||
return testRequirements(quester.getPlayer());
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean testRequirements(Player player) {
|
||||
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;
|
||||
}
|
||||
PlayerInventory inventory = player.getInventory();
|
||||
|
Loading…
Reference in New Issue
Block a user