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 Link icon

    • PlayerChangedWorldEvent Link icon

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

    • getFrom Link icon

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

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

      @NotNull public static HandlerList getHandlerList()