Class RejoinRemotePlayerInfo

java.lang.Object
de.marcely.bedwars.api.remote.RejoinRemotePlayerInfo
All Implemented Interfaces:
Cloneable

public class RejoinRemotePlayerInfo extends Object implements Cloneable
Contains all the info needed to rejoin a remote player to an arena.
  • Constructor Details

    • RejoinRemotePlayerInfo

      public RejoinRemotePlayerInfo()
      Creates a new instance.
  • Method Details

    • setPlayer

      public RejoinRemotePlayerInfo setPlayer(RemotePlayer player)
      Defines the player that shall rejoin.
      Parameters:
      player - The player involved in the rejoin
      Returns:
      This instance
    • getPlayer

      @Nullable public @Nullable RemotePlayer getPlayer()
      Get the player that shall rejoin.
      Returns:
      The player that shall rejoin, set using setPlayer(RemotePlayer).
    • setMemory

      public RejoinRemotePlayerInfo setMemory(@Nullable @Nullable QuitPlayerMemory memory)
      Set a memory that shall be used for the rejoining player.

      This one will be used even if there's already one for the player.

      Parameters:
      memory - The memory to be used. null to use the stored one of the arena
      Returns:
      This instance
    • getMemory

      @Nullable public @Nullable QuitPlayerMemory getMemory()
      Get the memory that shall be used for the rejoining player.

      This one will be used even if there's already one for the player.

      Returns:
      The memory to be used. null to use the stored one of the arena