Class GameModeShareHandler
java.lang.Object
org.mvplugins.multiverse.inventories.handleshare.GameModeShareHandler
GameMode change implementation of ShareHandler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AffectedProfilesprotected final MultiverseInventoriesprotected final InventoriesConfigprotected final org.bukkit.entity.Playerprotected final ProfileDataSourceprotected final WorldGroupManagerprotected final ProfileContainerStore -
Constructor Summary
ConstructorsConstructorDescriptionGameModeShareHandler(MultiverseInventories inventories, org.bukkit.entity.Player player, org.bukkit.GameMode fromGameMode, org.bukkit.GameMode toGameMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected ShareHandlingEventFinalizes the transfer from one world to another.protected voidprotected void
-
Field Details
-
player
protected final org.bukkit.entity.Player player -
affectedProfiles
-
inventories
-
profileDataStore
-
inventoriesConfig
-
worldGroupManager
-
worldProfileContainerStore
-
-
Constructor Details
-
GameModeShareHandler
public GameModeShareHandler(MultiverseInventories inventories, org.bukkit.entity.Player player, org.bukkit.GameMode fromGameMode, org.bukkit.GameMode toGameMode)
-
-
Method Details
-
createEvent
-
prepareProfiles
protected void prepareProfiles() -
handleSharing
Finalizes the transfer from one world to another. This handles the switching inventories/stats for a player and persisting the changes. -
logBypass
protected void logBypass()
-