From 6eaa298fb18b026c5b42b6ccbf9a27ae34a29e4f Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Thu, 15 Aug 2024 12:51:39 +0800 Subject: [PATCH] new-1 --- lib/API-1.0.jar | Bin 22638 -> 22769 bytes .../effect/types/LuckyBlockEffect.java | 8 ++++++++ .../enderdragonwar/listener/GameListener.java | 10 +++------- src/main/resources/plugin.yml | 2 +- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/API-1.0.jar b/lib/API-1.0.jar index 9873c9b9624cb1e9b82999d7db10aa3c178f7d38..b165e5f134abee566ce81649fb77a72838092742 100644 GIT binary patch delta 1913 zcmZvc3piA17{_PE$Y7Y=n4vHuB$wP74>OWmGh<9M&6puE?ur??6ic^>ltjV_sa+Y> zhG}gYm+e`XRZC%8l%86bB3g@dqut_3>pQkxYR~hW^E>bR{onUH=X~e;Kfj86RfEKG zmkw0L&c!h9C2Y@X|DnJI30nm+P0T5BX04J$7kiNH) z{0fSN1o6BAcM)U~YGC;=V{la{5EEAG141!4GDKn#e%;SXT#^N{KFVw&5?} zUaq&k73Q#UGF<0xY6|m+`G3<$cq;Ndi%Gb4*q8z}adGl?D}Pw0ZyOCW+kPz|{NfUx zs(h4e0>^4je2`Y9ILk|&MDSFql*2GjQh6|+xD>)-XtpaJNW+?>cL>PY$SDj6`jxP2(>ay4q>cPUr};nM+BlyN>Q(N@IYby_A-{X}R6HsP zOip`MG@aqTG5mmG9$8s9^mwFUm%7mS-rOk5Qe8lfntxB6E`BsD-V{7c`lQr6BS-bJ*=Cz0RVH2()BpmGr-UF0Kb%Yj7gdKf>&Swh(ZnNGTbS9Z0T zr`1Y2B*{w+QROPLyKo*?KB5b3@M^+6_sPbziVHw{Kzrsd@e-?WOWU+O-cwt0Jq{j~LmMiyNC0 zEJ#_}OobWub6PQKnNkb#S15|U8Ms6R z-5Q{uZU=y4I0G;lG=S3#Ccp>-7%Al7Ee5#Y%>j7h9SFc<3IXKIFaRx|C;*910Km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-Ji~l%J;jM=2?B;Jy<2>ilpjba$Gu#(%0D&SH#mx3%`J;M_30* zbXBLyN>1eyo3YQ1o-6m|xP)hKPcy5O{!y$zOV0A!u9Akd+vvgm{=SMvp5&g zecle>Mpt`(3NY<$31CWJ53rT)2#`sU z0SH(EfSar!fVDm_vSjF?=Y8xz=CKbfWB5X$%9jI@%h$tF?^=4eChxce k(6wRdh+Ap~=fCt&sqdJNc!4d^YXPg5(=;#`eQ%)t4Intc 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: