Kill All Mobs

Discussion in 'Plugin Development' started by MOMOTHEREAL, Sep 21, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    MOMOTHEREAL

    Hello! I am currently working on a plugin for my friend, which doesn't want to use external plugin. What I'm actually searching for is a piece of code to get all entities in the server and kill them. I tried checking on Essentials' code, which is kinda complicated...
    Thanks.
     
  2. MOMOTHEREAL. for(Entity ent : world.getEntities) { ent.setHealth(0); } just filter the players and itemdrops out yourself.
     
  3. Offline

    MOMOTHEREAL

    Thank you!
     
Thread Status:
Not open for further replies.

Share This Page