测试版
This commit is contained in:
parent
e80ebc80d8
commit
4f445cd366
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -38,3 +38,4 @@ build/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/.idea/
|
/.idea/
|
||||||
/out/
|
/out/
|
||||||
|
/libs/
|
||||||
|
|
5
pom.xml
5
pom.xml
|
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user