From 72556acfef0df44dd326fcc1d13b6e438bdd794e Mon Sep 17 00:00:00 2001 From: j502647092 Date: Sat, 23 May 2015 11:22:40 +0800 Subject: [PATCH] change LAVA to LAVA_BUCKRT... Signed-off-by: j502647092 --- .../LuckLottery/command/LuckLotteryCommand.java | 10 +++++++++- src/cn/citycraft/LuckLottery/utils/InvUtils.java | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/cn/citycraft/LuckLottery/command/LuckLotteryCommand.java b/src/cn/citycraft/LuckLottery/command/LuckLotteryCommand.java index 55dd5fe..e4af752 100644 --- a/src/cn/citycraft/LuckLottery/command/LuckLotteryCommand.java +++ b/src/cn/citycraft/LuckLottery/command/LuckLotteryCommand.java @@ -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 diff --git a/src/cn/citycraft/LuckLottery/utils/InvUtils.java b/src/cn/citycraft/LuckLottery/utils/InvUtils.java index 47a131b..bb07eca 100644 --- a/src/cn/citycraft/LuckLottery/utils/InvUtils.java +++ b/src/cn/citycraft/LuckLottery/utils/InvUtils.java @@ -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);