From d6ae680f7dc7e9795dac97d7a97260af492b9d53 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 22 Nov 2021 15:11:30 +0100 Subject: [PATCH 1/2] Update RandomListeners.java --- .../rip/tilly/bedwars/listeners/RandomListeners.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java b/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java index f9db84c..eaac268 100644 --- a/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java +++ b/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java @@ -1,8 +1,10 @@ package rip.tilly.bedwars.listeners; +import org.bukkit.entity.EntityType; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.*; +import org.bukkit.event.entity.CreatureSpawnEvent; import org.bukkit.event.entity.FoodLevelChangeEvent; import org.bukkit.event.hanging.HangingBreakEvent; import org.bukkit.event.player.PlayerDropItemEvent; @@ -79,4 +81,11 @@ public class RandomListeners implements Listener { event.setCancelled(true); } } + + @EventHandler + public void onCreatureSpawn(CreatureSpawnEvent event) { + if (event.getEntity().getType() != EntityType.ARMOR_STAND) { + event.setCancelled(true); + } + } } From 7fdaac8e9daa61641b3a908b8d4ef5e56227051e Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 22 Nov 2021 15:12:28 +0100 Subject: [PATCH 2/2] Delete e.java --- src/main/java/rip/tilly/bedwars/menus/e.java | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 src/main/java/rip/tilly/bedwars/menus/e.java diff --git a/src/main/java/rip/tilly/bedwars/menus/e.java b/src/main/java/rip/tilly/bedwars/menus/e.java deleted file mode 100644 index 94a411e..0000000 --- a/src/main/java/rip/tilly/bedwars/menus/e.java +++ /dev/null @@ -1,4 +0,0 @@ -package rip.tilly.bedwars.menus; - -public class e { -}