mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-20 06:21:19 +01:00
Update deposit method for Vault
This commit is contained in:
parent
acfc5c4bc6
commit
2f43ad9a3e
@ -6,6 +6,7 @@ import java.util.LinkedList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -308,7 +309,7 @@ public class Quest {
|
|||||||
player.giveExp(lb.getExp());
|
player.giveExp(lb.getExp());
|
||||||
}
|
}
|
||||||
if (lb.getMoney() > 0) {
|
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) {
|
if (lb.getItemList().isEmpty() == false) {
|
||||||
phatLootItems.addAll(lb.getItemList());
|
phatLootItems.addAll(lb.getItemList());
|
||||||
|
Loading…
Reference in New Issue
Block a user