Death dropped Items not appearing

Discussion in 'Plugin Development' started by Unknow03, Sep 22, 2019.

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

    Unknow03

    Hello,
    Im trying to make a Plugin that spawns the Player to differend location if dead.
    Everything with Spawning is working but the Player cant so the Items he dropped but if he goes there he collect them.
    How to get the Items visible?


    Code:
    @EventHandler
    public void onDead(PlayerDeathEvent e) {
        Player p = (Player) e.getEntity();
        e.setKeepInventory(false);
    }
    Code:
        @EventHandler
        public void onRespawn(PlayerRespawnEvent e) {
            e.setRespawnLocation(MyLoc);
        }
     
  2. Offline

    Sir_Jonn

    Is there any other plugins that could intefere with that? Plugin list?
     
  3. Offline

    Unknow03

    No localhost 1.8 without other plugins
     
  4. Online

    timtower Administrator Administrator Moderator

    @Unknow03 Why not remove the PlayerDeathEvent and just have keepInventory off with a gamerule?
     
  5. Offline

    Unknow03

    @timtower i am going to add there a few things when I fixed the items appearing problem
     
  6. Online

    timtower Administrator Administrator Moderator

    @Unknow03 Well, then don't call setKeepInventory
     
  7. Offline

    Unknow03

    @timtower
    Ok striked that out but still not appearing
     
  8. Online

    timtower Administrator Administrator Moderator

    Tried a relog? Are the items there? What version are we talking about?
     
  9. Offline

    Unknow03

    Yes after a reload the items are there also i can collect them.
    And same thing with dropped items, if i dropp sth and die the items are sometimes not appearing.
    Version: Spigot 1.8 R0.1 latest
     
  10. Online

    timtower Administrator Administrator Moderator

    Relog, like logging out and in, not reload.
    And why not update to a newer version? It is 5 years old...
     
  11. Offline

    Unknow03

    mean that after relog items are there
    Plugin for my Friend and he has a Server on that Version
     
    Last edited: Sep 23, 2019
  12. Offline

    Sir_Jonn

    Your best bet is to update your server version like @timtower said. Or add dropped items to a list and remove the items and redrop them there from the list. Dont know how efficient that could be
     
Thread Status:
Not open for further replies.

Share This Page