测试版

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 .DS_Store
/.idea/ /.idea/
/out/ /out/
/libs/

View File

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

View File

@ -1,5 +1,6 @@
package me.demon.market; package me.demon.market;
import me.Demon.DemonBanK.BankAPI;
import me.Demon.DemonPlugin.DemonAPI; import me.Demon.DemonPlugin.DemonAPI;
import me.demon.market.Event.MarketTradeEvent; import me.demon.market.Event.MarketTradeEvent;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -41,7 +42,7 @@ public abstract class MarketAPI {
main.KeyList.remove(key); main.KeyList.remove(key);
main.saveDataStatsConfig(); main.saveDataStatsConfig();
//储存收益数据 //储存收益数据
// BankAPI.addMoney(playName, Money); BankAPI.addMoney(playName, Money);
Player dj_player = Bukkit.getPlayer(playName); Player dj_player = Bukkit.getPlayer(playName);
if (dj_player != null) { if (dj_player != null) {
dj_player.sendMessage(main.prefix + "玩家 §a" + p.getName() + " §f拍下了您上架的 §r" + items.getItemMeta().getDisplayName() + "§7§lx§f" + items.getAmount()); 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; package me.demon.market;
import me.Demon.DemonPlayerMail.Api.DMailAPI;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
@ -23,7 +24,7 @@ public class TimeCheckRunnable {
//获取这个物品 //获取这个物品
ItemStack items = main.DataG.getItemStack(str+"Item"); ItemStack items = main.DataG.getItemStack(str+"Item");
// 将玩家物品退回邮箱 // 将玩家物品退回邮箱
// DMailAPI.GiveItem(playName,items); DMailAPI.GiveItem(playName,items);
// 将玩家物品退回邮箱 // 将玩家物品退回邮箱
//清理全球市场的价格 //清理全球市场的价格
main.DataG.set("Items." + key, null); main.DataG.set("Items." + key, null);