Class RejoinRemotePlayerInfo
java.lang.Object
de.marcely.bedwars.api.remote.RejoinRemotePlayerInfo
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable QuitPlayerMemoryGet the memory that shall be used for the rejoining player.@Nullable RemotePlayerGet the player that shall rejoin.setMemory(@Nullable QuitPlayerMemory memory) Set a memory that shall be used for the rejoining player.setPlayer(RemotePlayer player) Defines the player that shall rejoin.
-
Constructor Details
-
RejoinRemotePlayerInfo
public RejoinRemotePlayerInfo()Creates a new instance.
-
-
Method Details
-
setPlayer
Defines the player that shall rejoin.- Parameters:
player- The player involved in the rejoin- Returns:
- This instance
-
getPlayer
Get the player that shall rejoin.- Returns:
- The player that shall rejoin, set using
setPlayer(RemotePlayer).
-
setMemory
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.nullto use the stored one of the arena- Returns:
- This instance
-
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.
nullto use the stored one of the arena
-