Class PlayerChangedWorldEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerChangedWorldEvent

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

    • PlayerChangedWorldEvent

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

    • getFrom

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

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()