#How to stop mob eggs from working

1 messages · Page 1 of 1 (latest)

knotty pagoda
#

I need a plugin fro this, so players can't use the eggs to spawn mobs, just for changing spawners

golden pike
#

Probably something like:

        @EventHandler(priority = EventPriority.MONITOR)
            public void onMobEggPlace(PlayerInteractEvent event) {
                final Player player;
                if((player = event.getPlayer()) != null && event.getAction() == Action.RIGHT_CLICK_BLOCK
                && event.hasItem() && event.getItem().getType() == Material.MONSTER_EGG) {
                    event.setCancelled(true);
                    player.sendMessage(ChatColor.RED + "You are not allowed to place mob eggs!");
                }
            }
knotty pagoda
#

Hmm

#

So there is no plugin

mellow dawn
golden pike
golden pike
# knotty pagoda So there is no plugin

I had an idea to make a repository where I write plugins/example code/projects for people I help here, and the first thing I did was this, you can view the code, download the project yourself and or just download the compile jar from here that disables spawn eggs from being placed by people for you. however, if you want specific changes you'll probably have to deal with that yourself : https://github.com/sp0oOk/HelpChat

GitHub

A repository full of all the issues I've helped members of the HelpChat community solve! - sp0oOk/HelpChat

knotty pagoda
#

Thank you❤️