Question Add items on death

Discussion in 'Plugin Help/Development/Requests' started by T0X1C0801, Apr 5, 2015.

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

    T0X1C0801

    So i have a plugin for my hub so when the player joins it gives them some items but when they die for example from pvp (hub pvp) or some admin using /kill they wont get their items back so how do i add items on player death?
     
  2. Offline

    nverdier

    @T0X1C0801 Wait is the plugin yours? Do you want code to make it happen? Or do you want to get a plugin to do that?
     
  3. Offline

    T0X1C0801

  4. Offline

    2008Choco

    @T0X1C0801
    Code:
    public void onPlayerRespawn(PlayerRespawnEvent event){
        //Whatever you want to give the player when they hit respawn
    }
    However, alternatively, you could always do
    Code:
    gamerule keepInventory true
     
    Xerox262 likes this.
Thread Status:
Not open for further replies.

Share This Page