Created
October 24, 2016 09:53
-
-
Save Haarolean/1399f97ff5e467c3a81162ff1532293f to your computer and use it in GitHub Desktop.
clearlag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) | |
public void onEntityRemoveEvent(EntityRemoveEvent e) { | |
Iterator<Entity> it = e.getEntityList().iterator(); | |
while (it.hasNext()) { | |
Entity item = it.next(); | |
if (item.hasMetadata("MySuperItem")) { | |
it.remove(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment