Class BaseOnboardingService
java.lang.Object
com.gamersafer.minecraft.auth.common.onboarding.BaseOnboardingService
- All Implemented Interfaces:
IOnboardingService
The base implementation of the onboarding service. Has no effect on the player.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the player to the onboarding room.booleanReturnstrueif the player is in the onboarding room.booleanReturnstrueifplayeris in the onboarding world.booleanReturns true if the onboarding room is enabled.voidreload()Reloads the onboarding service.voidIfplayeris in the onboarding room, then this method will remove the player from the room.voidShows the onboarding book toplayer.
-
Constructor Details
-
BaseOnboardingService
public BaseOnboardingService()
-
-
Method Details
-
add
Description copied from interface:IOnboardingServiceAdds the player to the onboarding room.- Specified by:
addin interfaceIOnboardingService- Parameters:
player- the player
-
remove
Description copied from interface:IOnboardingServiceIfplayeris in the onboarding room, then this method will remove the player from the room.Otherwise, this method will do nothing.
- Specified by:
removein interfaceIOnboardingService- Parameters:
player- the player
-
showBook
Description copied from interface:IOnboardingServiceShows the onboarding book toplayer.- Specified by:
showBookin interfaceIOnboardingService- Parameters:
player- the player
-
inRoom
Description copied from interface:IOnboardingServiceReturnstrueif the player is in the onboarding room.If the player is in the onboarding world, but not currently onboarding, then this will return false.
Use
IOnboardingService.inWorld(IPlayer)to check if they are in the world.- Specified by:
inRoomin interfaceIOnboardingService- Parameters:
player- the player- Returns:
- true or false
-
inWorld
Description copied from interface:IOnboardingServiceReturnstrueifplayeris in the onboarding world.Note that this method will return true if the player is in the world, regardless of their status with the onboarding room.
- Specified by:
inWorldin interfaceIOnboardingService- Parameters:
player- the player- Returns:
- true or false
-
isEnabled
public boolean isEnabled()Description copied from interface:IOnboardingServiceReturns true if the onboarding room is enabled.- Specified by:
isEnabledin interfaceIOnboardingService- Returns:
- true or false
-
reload
public void reload()Description copied from interface:IOnboardingServiceReloads the onboarding service.- Specified by:
reloadin interfaceIOnboardingService
-