This commit is contained in:
Trixkz 2021-11-22 09:20:45 -05:00
commit e3048807fd
2 changed files with 9 additions and 4 deletions

View File

@ -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);
}
}
}

View File

@ -1,4 +0,0 @@
package rip.tilly.bedwars.menus;
public class e {
}