Class GSOnboardingListener
java.lang.Object
com.gamersafer.minecraft.auth.paper.listener.GSOnboardingListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Handles various events related to onboarding function.
The following events are handled specially by the onboarding room:
- When a player dies in the onboarding room, and they haven't finished the onboarding process, they will be respawned at the onboarding room spawn position.
- Players cannot take damage in the onboarding world.
- Players will be teleported back to the spawn position if they fall below y=5 in the onboarding room.
- The game cannot naturally spawn mobs. While the world is already peaceful, this prevents mobs like the Wandering Trader from spawning.
-
Constructor Summary
ConstructorDescriptionGSOnboardingListener
(@NonNull GSAuthPaper plugin, @NonNull OnboardingService service) ConstructsOnboardingEnterListener
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleCreatureSpawn
(@NonNull org.bukkit.event.entity.CreatureSpawnEvent event) void
handleEnterOnboardingWorld
(@NonNull org.bukkit.event.player.PlayerChangedWorldEvent event) void
handleEntityDamage
(@NonNull org.bukkit.event.entity.EntityDamageEvent event) void
handleLecternOpen
(@NonNull org.bukkit.event.player.PlayerInteractEvent event) void
handlePlayerDeath
(@NonNull org.bukkit.event.entity.PlayerDeathEvent event) void
handlePlayerJoin
(@NonNull org.bukkit.event.player.PlayerJoinEvent event) void
handlePlayerMoveEvent
(@NonNull org.bukkit.event.player.PlayerMoveEvent event) void
handlePlayerQuit
(@NonNull org.bukkit.event.player.PlayerQuitEvent event)
-
Constructor Details
-
GSOnboardingListener
ConstructsOnboardingEnterListener
.- Parameters:
plugin
- the GSAuthPaper pluginservice
- the onboarding service
-
-
Method Details
-
handleEnterOnboardingWorld
public void handleEnterOnboardingWorld(@NonNull org.bukkit.event.player.PlayerChangedWorldEvent event) -
handlePlayerJoin
public void handlePlayerJoin(@NonNull org.bukkit.event.player.PlayerJoinEvent event) -
handlePlayerQuit
public void handlePlayerQuit(@NonNull org.bukkit.event.player.PlayerQuitEvent event) -
handleLecternOpen
public void handleLecternOpen(@NonNull org.bukkit.event.player.PlayerInteractEvent event) -
handlePlayerDeath
public void handlePlayerDeath(@NonNull org.bukkit.event.entity.PlayerDeathEvent event) -
handleEntityDamage
public void handleEntityDamage(@NonNull org.bukkit.event.entity.EntityDamageEvent event) -
handlePlayerMoveEvent
public void handlePlayerMoveEvent(@NonNull org.bukkit.event.player.PlayerMoveEvent event) -
handleCreatureSpawn
public void handleCreatureSpawn(@NonNull org.bukkit.event.entity.CreatureSpawnEvent event)
-