Class PlayerRespawnListener

java.lang.Object
com.ranull.graves.listener.PlayerRespawnListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class PlayerRespawnListener extends Object implements org.bukkit.event.Listener
Handles player respawns and performs grave-related actions:
  • Runs a configured function shortly after respawn.
  • Optionally grants temporary potion effects if the grave is recent.
  • Optionally gives a compass pointing to the grave.
All world/player inventory interactions are deferred to the respawn location's region to ensure correct, thread-safe execution order after the player is placed in the world.
  • Constructor Details

    • PlayerRespawnListener

      public PlayerRespawnListener(Graves plugin)
  • Method Details

    • onPlayerRespawn

      public void onPlayerRespawn(org.bukkit.event.player.PlayerRespawnEvent event)