Interface RespawnPlayerEvent.Recreate

    • Method Detail

      • recreatedPlayer

        ServerPlayer recreatedPlayer()
        Gets the player that was recreated.

        Care must be taken in interacting with this player as at this point in time the player is not within the world.

        Returns:
        The player
      • isBedSpawn

        boolean isBedSpawn()
        Gets whether the position of spawn was set by a Bed.
        Returns:
        True if the position of spawn was due to a bed, false otherwise
      • isDeath

        boolean isDeath()
        Gets if this respawn is due to a player's death.
        Returns:
        true if player died, false otherwise