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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the player to the onboarding room.boolean
Returnstrue
if the player is in the onboarding room.boolean
Returnstrue
ifplayer
is in the onboarding world.boolean
Returns true if the onboarding room is enabled.void
reload()
Reloads the onboarding service.void
Ifplayer
is in the onboarding room, then this method will remove the player from the room.void
Shows the onboarding book toplayer
.
-
Constructor Details
-
BaseOnboardingService
public BaseOnboardingService()
-
-
Method Details
-
add
Description copied from interface:IOnboardingService
Adds the player to the onboarding room.- Specified by:
add
in interfaceIOnboardingService
- Parameters:
player
- the player
-
remove
Description copied from interface:IOnboardingService
Ifplayer
is in the onboarding room, then this method will remove the player from the room.Otherwise, this method will do nothing.
- Specified by:
remove
in interfaceIOnboardingService
- Parameters:
player
- the player
-
showBook
Description copied from interface:IOnboardingService
Shows the onboarding book toplayer
.- Specified by:
showBook
in interfaceIOnboardingService
- Parameters:
player
- the player
-
inRoom
Description copied from interface:IOnboardingService
Returnstrue
if 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:
inRoom
in interfaceIOnboardingService
- Parameters:
player
- the player- Returns:
- true or false
-
inWorld
Description copied from interface:IOnboardingService
Returnstrue
ifplayer
is 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:
inWorld
in interfaceIOnboardingService
- Parameters:
player
- the player- Returns:
- true or false
-
isEnabled
public boolean isEnabled()Description copied from interface:IOnboardingService
Returns true if the onboarding room is enabled.- Specified by:
isEnabled
in interfaceIOnboardingService
- Returns:
- true or false
-
reload
public void reload()Description copied from interface:IOnboardingService
Reloads the onboarding service.- Specified by:
reload
in interfaceIOnboardingService
-