测试版

This commit is contained in:
tianyu 2024-07-24 06:06:18 +08:00
parent e80ebc80d8
commit 4f445cd366
4 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View File

@ -38,3 +38,4 @@ build/
.DS_Store
/.idea/
/out/
/libs/

View File

@ -38,6 +38,11 @@
<artifactId>DemonAPI</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>me.Demon.DemonBank</groupId>
<artifactId>DemonBank</artifactId>
<version>1.4</version>
</dependency>
</dependencies>

View File

@ -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());

View File

@ -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);