Class ShareHandlingEvent

java.lang.Object
org.bukkit.event.Event
org.mvplugins.multiverse.inventories.event.ShareHandlingEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
GameModeChangeShareHandlingEvent, ReadOnlyShareHandlingEvent, WorldChangeShareHandlingEvent, WriteOnlyShareHandlingEvent

public abstract sealed class ShareHandlingEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable permits GameModeChangeShareHandlingEvent, ReadOnlyShareHandlingEvent, WorldChangeShareHandlingEvent, WriteOnlyShareHandlingEvent
Called when a player has changed from one world to another. Cancellable.
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getWriteProfiles

      public List<PersistingProfile> getWriteProfiles()
      Returns:
      The profiles for the world/groups the player is coming from that data will be saved to.
    • getReadProfiles

      public List<PersistingProfile> getReadProfiles()
      Returns:
      The profiles for the world/groups the player is going to that data will be loaded from.
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns:
      The player involved in this sharing transaction.