mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 13:45:32 +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());
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user