Class GSOnboardingListener

All Implemented Interfaces:

public class GSOnboardingListener extends Object implements 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 Details

    • GSOnboardingListener

      public GSOnboardingListener(@NonNull GSAuthPaper plugin, @NonNull OnboardingService service)
      Constructs OnboardingEnterListener.
      plugin - the GSAuthPaper plugin
      service - 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)