So despite the name this is a little more complicated. I need to make a plugin so whenever someone joins a specific world named "lobby" their inventory is cleared. I have no idea where I am going with this. This is what I have so far Essentially I am no where Code: @EventHandler public void onWorldEvent(WorldEvent e) { e.getWorld().getPlayers(). }
snake4212 Alright, so what you'll want in a PlayerTeleportEvent Code: public void onPlayerTeleport(PlayerTeleportEvent event){ Player player = event.getPlayer(); if (player.getWorld().getName().equals("worldname"){ player.getInventory().clear(); } }
snake4212 Hmm, well for explosions you'd need... Code: public void onEntityExplode(EntityExplodeEvent event){ event.setYield((float)0); } At least I think that's it. As for block breaking... you mean you want the blocks to break, but not to drop an item?