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 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 UseOnMove
      Deprecated, for removal: This API element is subject to removal in a future version.
    • bucketFilling

      @Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean bucketFilling
      Deprecated, for removal: This API element is subject to removal in a future version.
    • EnforcePortalAccess

      @Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean EnforcePortalAccess
      Deprecated, for removal: This API element is subject to removal in a future version.
    • WandEnabled

      @Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean WandEnabled
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use isWandEnabled() instead
    • ClearOnRemove

      @Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean ClearOnRemove
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TeleportVehicles

      @Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean TeleportVehicles
      Deprecated, for removal: This API element is subject to removal in a future version.
    • NetherAnimation

      @Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static boolean NetherAnimation
      Deprecated, for removal: This API element is subject to removal in a future version.
    • FrameMaterials

      @Deprecated(since="5.1", forRemoval=true) @ScheduledForRemoval(inVersion="6.0") public static List<org.bukkit.Material> FrameMaterials
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • MultiversePortals

      public MultiversePortals()
  • Method Details

    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class org.bukkit.plugin.java.JavaPlugin
    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.mvplugins.multiverse.core.module.MultiverseModule
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.mvplugins.multiverse.core.module.MultiverseModule
    • getPortalSession

      public PortalPlayerSession getPortalSession(org.bukkit.entity.Player p)
      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 a PortalPlayerSession instance for a player.
      Parameters:
      p - Target player to remove.
    • savePortalsConfig

      public boolean savePortalsConfig()
    • getTargetCoreVersion

      public double getTargetCoreVersion()
      Specified by:
      getTargetCoreVersion in class org.mvplugins.multiverse.core.module.MultiverseModule
    • getWorldEditConnection

      public WorldEditConnection 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.
    • 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.
    • 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.
      Use PortalsConfig methods 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.
    • 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.
    • 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.