1
0
mirror of https://e.coding.net/circlecloud/LuckLottery.git synced 2025-11-24 21:46:23 +00:00

change LAVA to LAVA_BUCKRT...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092
2015-05-23 11:22:40 +08:00
parent 5a52046d0d
commit 72556acfef
2 changed files with 10 additions and 2 deletions

View File

@@ -26,11 +26,19 @@ public class LuckLotteryCommand implements CommandExecutor {
switch (args.length) {
case 0:
if (isPlayer(sender)) {
Player p = (Player) sender;
final Player p = (Player) sender;
int price = LotteryUtils.getPrice();
if (LuckLottery.economy.hasAccount(p)
&& LuckLottery.economy.has(p, price)) {
// p.closeInventory();
// plugin.getServer().getScheduler()
// .runTaskLaterAsynchronously(plugin, new Runnable() {
// @Override
// public void run() {
InvUtils.openGui(p);
// }
//
// }, 2);
} else {
ChatUtils.sendMessage(p, ChatColor.GOLD
+ "你没有足够的金钱购买彩票,每张彩票" + ChatColor.RED + price

View File

@@ -137,7 +137,7 @@ public class InvUtils {
public static final ItemStack CM = new ItemStack(Material.WATER_LILY);
public static final ItemStack CantCreat = new ItemStack(Material.EMPTY_MAP);
public static final ItemStack A = new ItemStack(Material.AIR);
public static final ItemStack RT = new ItemStack(Material.LAVA);
public static final ItemStack RT = new ItemStack(Material.LAVA_BUCKET);
static {
setDisplayName(W, WEB);
setDisplayName(L0, Normal1);