diff --git a/lib/API-1.0.jar b/lib/API-1.0.jar index 9873c9b..b165e5f 100644 Binary files a/lib/API-1.0.jar and b/lib/API-1.0.jar differ diff --git a/src/main/java/com/yaohun/enderdragonwar/effect/types/LuckyBlockEffect.java b/src/main/java/com/yaohun/enderdragonwar/effect/types/LuckyBlockEffect.java index eea6fda..ae7bb1a 100644 --- a/src/main/java/com/yaohun/enderdragonwar/effect/types/LuckyBlockEffect.java +++ b/src/main/java/com/yaohun/enderdragonwar/effect/types/LuckyBlockEffect.java @@ -19,8 +19,16 @@ public class LuckyBlockEffect extends GameGiftEffect { private static List itemStacks = new ArrayList<>(); static { + itemStacks.add(new ItemStackBuilder(Material.TURTLE_HELMET).setDisplayName("§2§l绿帽子").addEnchant(Enchantment.PROTECTION, 2).build()); itemStacks.add(new ItemStackBuilder(Material.ENDER_PEARL).setAmount(16).build()); itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); + itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); + itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); + itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); + itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); + itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); + itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); + itemStacks.add(new ItemStackBuilder(Material.ENDER_EYE).setAmount(16).build()); itemStacks.add(new ItemStackBuilder(Material.DIAMOND_BLOCK).setAmount(16).build()); itemStacks.add(new ItemStackBuilder(Material.DIAMOND).setAmount(64).build()); diff --git a/src/main/java/com/yaohun/enderdragonwar/listener/GameListener.java b/src/main/java/com/yaohun/enderdragonwar/listener/GameListener.java index 692ba2c..eb3ff05 100644 --- a/src/main/java/com/yaohun/enderdragonwar/listener/GameListener.java +++ b/src/main/java/com/yaohun/enderdragonwar/listener/GameListener.java @@ -30,24 +30,20 @@ public class GameListener implements Listener { EnderDragonWar.game.quitGame(event.getPlayer()); } - /* - * 死亡后游戏时间 +5分钟 - * */ @EventHandler public void onDeath(PlayerDeathEvent event) { event.setDeathMessage(null); - Player p = event.getEntity(); + Player player = event.getEntity(); new BukkitRunnable() { private int i = 0; public void run() { if (i == 1) { - p.spigot().respawn(); + player.spigot().respawn(); } - // 增加游戏时间5分钟 if (i == 3) { EnderDragonWar.game.addLiveTime(5); - p.sendTitle("§4你嘎了", "§e加播5分钟!"); + player.sendTitle("§4你嘎了", "§e加播5分钟!"); cancel(); } i++; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 317f737..b0b7150 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: EnderDragonWar version: 1.0 api-version: 1.20 -main: com.yaohun.enderdragonwar.Main +main: com.yaohun.enderdragonwar.EnderDragonWar depend: [PixelLiveAPI] commands: enderdragonwar: