Class PlayerChangedWorldEvent


  • public class PlayerChangedWorldEvent
    extends PlayerEvent
    Called when a player switches to another world.
    • Constructor Detail

      • PlayerChangedWorldEvent

        public PlayerChangedWorldEvent​(@NotNull
                                       Player player,
                                       @NotNull
                                       World from)
    • Method Detail

      • getFrom

        @NotNull
        public World getFrom()
        Gets the world the player is switching from.
        Returns:
        player's previous world
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()