diff --git a/.gitignore b/.gitignore index c037f46..6d1fc40 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ build/ .DS_Store /.idea/ /out/ +/libs/ diff --git a/pom.xml b/pom.xml index 07487c7..fa9b1d6 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,11 @@ DemonAPI 1.2.0 + + me.Demon.DemonBank + DemonBank + 1.4 + diff --git a/src/main/java/me/demon/market/MarketAPI.java b/src/main/java/me/demon/market/MarketAPI.java index 88bcf33..35b40be 100644 --- a/src/main/java/me/demon/market/MarketAPI.java +++ b/src/main/java/me/demon/market/MarketAPI.java @@ -1,5 +1,6 @@ package me.demon.market; +import me.Demon.DemonBanK.BankAPI; import me.Demon.DemonPlugin.DemonAPI; import me.demon.market.Event.MarketTradeEvent; import org.bukkit.Bukkit; @@ -41,7 +42,7 @@ public abstract class MarketAPI { main.KeyList.remove(key); main.saveDataStatsConfig(); //储存收益数据 - // BankAPI.addMoney(playName, Money); + BankAPI.addMoney(playName, Money); Player dj_player = Bukkit.getPlayer(playName); if (dj_player != null) { dj_player.sendMessage(main.prefix + "玩家 §a" + p.getName() + " §f拍下了您上架的 §r" + items.getItemMeta().getDisplayName() + "§7§lx§f" + items.getAmount()); diff --git a/src/main/java/me/demon/market/TimeCheckRunnable.java b/src/main/java/me/demon/market/TimeCheckRunnable.java index a8fab99..3409c2f 100644 --- a/src/main/java/me/demon/market/TimeCheckRunnable.java +++ b/src/main/java/me/demon/market/TimeCheckRunnable.java @@ -1,5 +1,6 @@ package me.demon.market; +import me.Demon.DemonPlayerMail.Api.DMailAPI; import org.bukkit.Bukkit; import org.bukkit.inventory.ItemStack; @@ -23,7 +24,7 @@ public class TimeCheckRunnable { //获取这个物品 ItemStack items = main.DataG.getItemStack(str+"Item"); // 将玩家物品退回邮箱 - // DMailAPI.GiveItem(playName,items); + DMailAPI.GiveItem(playName,items); // 将玩家物品退回邮箱 //清理全球市场的价格 main.DataG.set("Items." + key, null);