Advertisement
Guest User

Untitled

a guest
Oct 27th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Player player = event.getPlayer();
  2. NBTManager manager = NBTManager.getInstance();
  3. NBTCompound playerdata = manager.read(player);
  4. if (playerdata.containsKey("Attributes")) {
  5. NBTList atkey = playerdata.getList("Attributes");
  6. NBTList.NBTIterator subkeys = atkey.listIterator();
  7. while (subkeys.hasNext()) {
  8. NBTCompound sub = (NBTCompound) subkeys.next();
  9. if (sub.containsKey("Modifiers")){
  10. sub.remove("Modifiers");
  11. } // if modifiers
  12. } // end iterator
  13. manager.write(player, playerdata);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement