mirror of
https://e.coding.net/circlecloud/LuckLottery.git
synced 2025-11-24 21:46:23 +00:00
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user