Package org.mvplugins.multiverse.portals
Class MultiversePortals
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.mvplugins.multiverse.core.module.MultiverseModule
org.mvplugins.multiverse.portals.MultiversePortals
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
@Service
public class MultiversePortals
extends org.mvplugins.multiverse.core.module.MultiverseModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.static booleanDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getClearOnRemove()insteadprotected org.mvplugins.multiverse.external.jakarta.inject.Provider<org.mvplugins.multiverse.core.dynamiclistener.DynamicListenerRegistration> static booleanDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getPortalsDefaultToNether()insteadstatic List<org.bukkit.Material> Deprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getFrameMaterials()insteadstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getNetherAnimation()insteadstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getTeleportVehicles()insteadstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getUseOnMove()insteadstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.UseisWandEnabled()insteadFields inherited from class org.mvplugins.multiverse.core.module.MultiverseModule
commandManagerProvider, serviceLocator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroyPortalSession(org.bukkit.entity.Player p) Removes aPortalPlayerSessioninstance for a player.longDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getPortalCooldown()insteadorg.bukkit.configuration.file.FileConfigurationDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfigmethods instead.org.bukkit.configuration.file.FileConfigurationgetPortalSession(org.bukkit.entity.Player p) Gets a PortalSession for a give player.doubleDeprecated, for removal: This API element is subject to removal in a future version.This is a debug method that should not be exposed.org.bukkit.MaterialDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getWandMaterial()insteadReturns the WorldEdit compatibility object.booleanvoidDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.load()insteadvoidvoidonEnable()voidonLoad()voidvoidreloadConfigs(boolean reloadPortals) booleanDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.save()insteadbooleanvoidsetWandEnabled(boolean enabled) Methods inherited from class org.mvplugins.multiverse.core.module.MultiverseModule
getServiceLocator, getVersionAsNumber, initializeDependencyInjection, registerCommands, registerDynamicListeners, registerEvents, setUpLocales, shutdownDependencyInjectionMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getLog4JLogger, getSLF4JLogger
-
Field Details
-
dynamicListenerRegistrationProvider
@Inject protected org.mvplugins.multiverse.external.jakarta.inject.Provider<org.mvplugins.multiverse.core.dynamiclistener.DynamicListenerRegistration> dynamicListenerRegistrationProvider -
UseOnMove
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean UseOnMoveDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getUseOnMove()instead -
bucketFilling
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean bucketFillingDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getBucketFilling()instead -
EnforcePortalAccess
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean EnforcePortalAccessDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getPortalsDefaultToNether()instead -
WandEnabled
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean WandEnabledDeprecated, for removal: This API element is subject to removal in a future version.UseisWandEnabled()instead -
ClearOnRemove
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean ClearOnRemoveDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getClearOnRemove()instead -
TeleportVehicles
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean TeleportVehiclesDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getTeleportVehicles()instead -
NetherAnimation
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean NetherAnimationDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getNetherAnimation()instead -
FrameMaterials
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static List<org.bukkit.Material> FrameMaterialsDeprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getFrameMaterials()instead
-
-
Constructor Details
-
MultiversePortals
public MultiversePortals()
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classorg.bukkit.plugin.java.JavaPlugin
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.mvplugins.multiverse.core.module.MultiverseModule
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.mvplugins.multiverse.core.module.MultiverseModule
-
getPortalSession
Gets a PortalSession for a give player. A new instance is created if not present.- Parameters:
p- Target player to get PortalSession.- Returns:
- The player's
PortalPlayerSession
-
destroyPortalSession
public void destroyPortalSession(org.bukkit.entity.Player p) Removes aPortalPlayerSessioninstance for a player.- Parameters:
p- Target player to remove.
-
savePortalsConfig
public boolean savePortalsConfig() -
getTargetCoreVersion
public double getTargetCoreVersion()- Specified by:
getTargetCoreVersionin classorg.mvplugins.multiverse.core.module.MultiverseModule
-
getWorldEditConnection
Returns the WorldEdit compatibility object. Use this to check for WorldEdit and get a player's WorldEdit selection.- Returns:
- the WorldEdit compatibility object.
-
getPortalsConfig
public org.bukkit.configuration.file.FileConfiguration getPortalsConfig() -
reloadConfigs
public void reloadConfigs() -
reloadConfigs
public void reloadConfigs(boolean reloadPortals) -
isWandEnabled
public boolean isWandEnabled() -
setWandEnabled
public void setWandEnabled(boolean enabled) -
loadConfig
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public void loadConfig()Deprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.load()instead -
saveMainConfig
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public boolean saveMainConfig()Deprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.save()instead -
getMainConfig
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public org.bukkit.configuration.file.FileConfiguration getMainConfig()Deprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfigmethods instead. Do not edit the config file object itself. -
getCooldownTime
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public long getCooldownTime()Deprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getPortalCooldown()instead -
getWandMaterial
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public org.bukkit.Material getWandMaterial()Deprecated, for removal: This API element is subject to removal in a future version.UsePortalsConfig.getWandMaterial()instead -
getVersionInfo
@Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public String getVersionInfo()Deprecated, for removal: This API element is subject to removal in a future version.This is a debug method that should not be exposed.
-
PortalsConfig.getBucketFilling()instead