Why this won't work

Discussion in 'Plugin Development' started by Unknown_Stalker_, Dec 1, 2013.

Thread Status:
Not open for further replies.
  1. Code:java
    1. [5:23:27 AM] *Goomonster3* | LightPvP Owner: for(Item clearlastdrop : lastdrop) {
    2. clearlastdrop.remove();
    3. }
    4. for(ItemStack onGround : drops) {
    5. Item itemonGround = event1.getEntity().getLocation().getWorld().dropItemNaturally(event1.getEntity().getLocation(), onGround);
    6. lastdrop.add(itemonGround);
    7. drops.clear();
    8. }

    what im trying to do is If player1 dies drops death items then player2 dies drops player2's items but removes player1's items.
     
  2. Offline

    Jalau

    What exactly does not work?
     
  3. Jalau if you read at the bottom of it it says.....

    Jalau it dosn't remove the items when player2 dies

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  4. Offline

    werter318

    Can you post the full source, and try to explain it a bit better?
     
  5. Offline

    SourceForums

    werter318
    I think he wants only 1 dead player's loots on the ground at a time.
     
Thread Status:
Not open for further replies.

Share This Page