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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.Player
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, getHandlers, isAsynchronous
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getWriteProfiles
- Returns:
- The profiles for the world/groups the player is coming from that data will be saved to.
-
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.
-