Class PlayerRespawnEvent

java.lang.Object
fr.fidorial.event.player.PlayerRespawnEvent
All Implemented Interfaces:
Event, PlayerEvent

public final class PlayerRespawnEvent extends Object implements PlayerEvent
Fired when a dead player clicks respawn, before they are placed back in the world.
Since:
0.1.0
  • Constructor Details

    • PlayerRespawnEvent

      public PlayerRespawnEvent(Player player, World world, Location location)
  • Method Details

    • player

      public Player player()
      Specified by:
      player in interface PlayerEvent
    • world

      public World world()
      Returns:
      the world the player is about to respawn in
    • location

      public Location location()
      Returns:
      the position the player is about to respawn at
    • setRespawnLocation

      public void setRespawnLocation(World world, Location location)
      Parameters:
      world - the world to respawn in instead
      location - the position to respawn at instead
    • setRespawnLocation

      public void setRespawnLocation(Location location)
      Parameters:
      location - the position to respawn at instead, in the same world