mirror of
https://e.coding.net/circlecloud/LuckLottery.git
synced 2025-11-25 21:56:08 +00:00
@@ -26,11 +26,19 @@ public class LuckLotteryCommand implements CommandExecutor {
|
|||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0:
|
case 0:
|
||||||
if (isPlayer(sender)) {
|
if (isPlayer(sender)) {
|
||||||
Player p = (Player) sender;
|
final Player p = (Player) sender;
|
||||||
int price = LotteryUtils.getPrice();
|
int price = LotteryUtils.getPrice();
|
||||||
if (LuckLottery.economy.hasAccount(p)
|
if (LuckLottery.economy.hasAccount(p)
|
||||||
&& LuckLottery.economy.has(p, price)) {
|
&& LuckLottery.economy.has(p, price)) {
|
||||||
|
// p.closeInventory();
|
||||||
|
// plugin.getServer().getScheduler()
|
||||||
|
// .runTaskLaterAsynchronously(plugin, new Runnable() {
|
||||||
|
// @Override
|
||||||
|
// public void run() {
|
||||||
InvUtils.openGui(p);
|
InvUtils.openGui(p);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }, 2);
|
||||||
} else {
|
} else {
|
||||||
ChatUtils.sendMessage(p, ChatColor.GOLD
|
ChatUtils.sendMessage(p, ChatColor.GOLD
|
||||||
+ "你没有足够的金钱购买彩票,每张彩票" + ChatColor.RED + price
|
+ "你没有足够的金钱购买彩票,每张彩票" + ChatColor.RED + price
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ public class InvUtils {
|
|||||||
public static final ItemStack CM = new ItemStack(Material.WATER_LILY);
|
public static final ItemStack CM = new ItemStack(Material.WATER_LILY);
|
||||||
public static final ItemStack CantCreat = new ItemStack(Material.EMPTY_MAP);
|
public static final ItemStack CantCreat = new ItemStack(Material.EMPTY_MAP);
|
||||||
public static final ItemStack A = new ItemStack(Material.AIR);
|
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 {
|
static {
|
||||||
setDisplayName(W, WEB);
|
setDisplayName(W, WEB);
|
||||||
setDisplayName(L0, Normal1);
|
setDisplayName(L0, Normal1);
|
||||||
|
|||||||
Reference in New Issue
Block a user