Filled Only drop items when killed by a player

Discussion in 'Plugin Requests' started by XavierMechanics, Sep 17, 2015.

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

    XavierMechanics

    Hi guys,

    Anyone here could make me a plugin?

    What I want: I want a plugin that prevents players from dropping their items in their inventory when they we're killed by a mob, fell into a high place, suffocated on the wall, fell out of the world and etc. And they only drop items when they we're killed by a another player.

    Thanks.
     
  2. Online

    timtower Administrator Administrator Moderator

    @XavierMechanics And what happens if they die by mobs? Do the items just disappear or do they spawn with those items?
     
  3. Offline

    tkuiyeager1

  4. Offline

    XavierMechanics

    @timtower

    They spawn with those items, without any loss.


    @tkuiyeager1
    Oh, I want if they were killed by mobs, they will respawn with their items without any loss
     
  5. Offline

    tkuiyeager1

    @XavierMechanics Sorry I Don't Know How To Do That When Get Killed By A Mob And Then Respawn His Items Will Be In His Invnetory.
     
  6. Offline

    oceantheskatr

    @tkuiyeager1 On death store inventory items in a hashmap, then set their inventory to that on respawn.
     
  7. Offline

    tkuiyeager1

    @oceantheskatr im still new to java maybe you can show me an example?
     
  8. Offline

    hydroeak

  9. Offline

    tkuiyeager1

    @hydroeak ok thx. can you send me the link?
     
  10. Online

    timtower Administrator Administrator Moderator

    Link will be posted here when it is done ;)
     
  11. Offline

    tkuiyeager1

  12. Offline

    hydroeak

    Last edited: Sep 18, 2015
  13. Offline

    tkuiyeager1

    @hydroeak did you already post the code?
     
  14. Online

    timtower Administrator Administrator Moderator

    He did, and removed it again.
     
  15. Offline

    tkuiyeager1

  16. Offline

    hydroeak

    tkuiyeager1 likes this.
  17. Offline

    tkuiyeager1

    @hydroeak i looked at your code, now i understand its simple than i thought. Thanks.
     
    hydroeak likes this.
Thread Status:
Not open for further replies.

Share This Page