Class MultiverseCoreConfiguration

  • All Implemented Interfaces:
    MultiverseCoreConfig, org.bukkit.configuration.serialization.ConfigurationSerializable

    public class MultiverseCoreConfiguration
    extends me.main__.util.SerializationConfig.SerializationConfig
    implements MultiverseCoreConfig
    Our configuration.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getDisplayPermErrors()
      Gets displayPermErrors.
      boolean getEnableBuscript()
      Gets enableBuscript.
      boolean getEnforceAccess()
      Gets enforceAccess.
      boolean getFirstSpawnOverride()
      Gets firstSpawnOverride.
      java.lang.String getFirstSpawnWorld()
      Gets firstSpawnWorld.
      int getGlobalDebug()
      Gets globalDebug.
      static MultiverseCoreConfiguration getInstance()
      Gets the statically saved instance.
      int getMessageCooldown()
      Gets messageCooldown.
      int getPortalSearchRadius()
      Gets the radius at which vanilla style portals will be searched for to connect to worlds together.
      boolean getPrefixChat()
      Gets prefixChat.
      java.lang.String getPrefixChatFormat()
      Gets prefixChatFormat.
      boolean getSilentStart()
      Whether we are suppressing startup messages.
      int getTeleportCooldown()
      Gets portalCooldown.
      boolean getTeleportIntercept()
      Gets teleportIntercept.
      boolean getUseAsyncChat()
      Gets useasyncchat.
      double getVersion()
      Gets version.
      boolean isAutoPurgeEnabled()
      Gets whether or not the automatic purge of entities is enabled.
      static boolean isSet()  
      boolean isShowingDonateMessage()
      Gets whether or not the donation/patreon messages are shown.
      boolean isUsingDefaultPortalSearch()
      Gets whether or not Bukkit will be determining portal search radius on its own or if Multiverse should help.
      void setAutoPurgeEnabled​(boolean autopurge)
      Sets whether or not the automatic purge of entities is enabled.
      boolean setConfigProperty​(java.lang.String property, java.lang.String value)
      Sets a property using a String.
      protected void setDefaults()
      void setDisplayPermErrors​(boolean displayPermErrors)
      Sets displayPermErrors.
      void setEnableBuscript​(boolean enableBuscript)
      Sets enableBuscript.
      void setEnforceAccess​(boolean enforceAccess)
      Sets enforceAccess.
      void setFirstSpawnOverride​(boolean firstSpawnOverride)
      Sets firstSpawnOverride.
      void setFirstSpawnWorld​(java.lang.String firstSpawnWorld)
      Sets firstSpawnWorld.
      void setGlobalDebug​(int globalDebug)
      Sets globalDebug.
      static void setInstance​(MultiverseCoreConfiguration instance)
      Sets the statically saved instance.
      void setMessageCooldown​(int messageCooldown)
      Sets messageCooldown.
      void setPortalSearchRadius​(int searchRadius)
      Sets the radius at which vanilla style portals will be searched for to connect to worlds together.
      void setPrefixChat​(boolean prefixChat)
      Sets prefixChat.
      void setPrefixChatFormat​(java.lang.String prefixChatFormat)
      Sets prefixChatFormat.
      void setShowDonateMessage​(boolean showDonateMessage)
      Sets whether or not the donation/patreon messages are shown.
      void setSilentStart​(boolean silentStart)
      Sets whether to suppress startup messages.
      void setTeleportCooldown​(int teleportCooldown)
      Sets portalCooldown.
      void setTeleportIntercept​(boolean teleportIntercept)
      Sets teleportIntercept.
      void setUseAsyncChat​(boolean useAsyncChat)
      Sets useasyncchat.
      void setUseDefaultPortalSearch​(boolean useDefaultPortalSearch)
      Sets whether or not to let Bukkit determine portal search radius on its own or if Multiverse should give input.
      void setVersion​(int version)
      Sets version.
      • Methods inherited from class me.main__.util.SerializationConfig.SerializationConfig

        buildVPropChanges, copyValues, flushPendingVPropChanges, getAliasMap, getAliasMap, getProperty, getProperty, getPropertyDescription, getPropertyDescription, getPropertyDescriptionUnchecked, getPropertyDescriptionUnchecked, getPropertyUnchecked, getPropertyUnchecked, initLogging, loadValues, registerAlias, registerAlias, registerAll, registerGlobalValidator, registerObjectUsing, registerValidator, serialize, setProperty, setProperty, setPropertyUnchecked, setPropertyUnchecked, setPropertyValue, setPropertyValue, setPropertyValueUnchecked, setPropertyValueUnchecked, unregisterAll
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable

        serialize
    • Constructor Detail

      • MultiverseCoreConfiguration

        public MultiverseCoreConfiguration()
      • MultiverseCoreConfiguration

        public MultiverseCoreConfiguration​(java.util.Map<java.lang.String,​java.lang.Object> values)
    • Method Detail

      • setInstance

        public static void setInstance​(MultiverseCoreConfiguration instance)
        Sets the statically saved instance.
        Parameters:
        instance - The new instance.
      • isSet

        public static boolean isSet()
        Returns:
        True if the static instance of config is set.
      • getInstance

        public static MultiverseCoreConfiguration getInstance()
        Gets the statically saved instance.
        Returns:
        The statically saved instance.
      • setDefaults

        protected void setDefaults()
        Specified by:
        setDefaults in class me.main__.util.SerializationConfig.SerializationConfig
      • setConfigProperty

        public boolean setConfigProperty​(java.lang.String property,
                                         java.lang.String value)
        Sets a property using a String.
        Specified by:
        setConfigProperty in interface MultiverseCoreConfig
        Parameters:
        property - The name of the property.
        value - The value.
        Returns:
        True on success, false if the operation failed.
      • setEnforceAccess

        public void setEnforceAccess​(boolean enforceAccess)
        Sets enforceAccess.
        Specified by:
        setEnforceAccess in interface MultiverseCoreConfig
        Parameters:
        enforceAccess - The new value.
      • setPrefixChat

        public void setPrefixChat​(boolean prefixChat)
        Sets prefixChat.
        Specified by:
        setPrefixChat in interface MultiverseCoreConfig
        Parameters:
        prefixChat - The new value.
      • setPrefixChatFormat

        public void setPrefixChatFormat​(java.lang.String prefixChatFormat)
        Sets prefixChatFormat.
        Specified by:
        setPrefixChatFormat in interface MultiverseCoreConfig
        Parameters:
        prefixChatFormat - The new value.
      • setTeleportIntercept

        public void setTeleportIntercept​(boolean teleportIntercept)
        Sets teleportIntercept.
        Specified by:
        setTeleportIntercept in interface MultiverseCoreConfig
        Parameters:
        teleportIntercept - The new value.
      • setFirstSpawnOverride

        public void setFirstSpawnOverride​(boolean firstSpawnOverride)
        Sets firstSpawnOverride.
        Specified by:
        setFirstSpawnOverride in interface MultiverseCoreConfig
        Parameters:
        firstSpawnOverride - The new value.
      • setEnableBuscript

        public void setEnableBuscript​(boolean enableBuscript)
        Sets enableBuscript.
        Specified by:
        setEnableBuscript in interface MultiverseCoreConfig
        Parameters:
        enableBuscript - The new value.
      • setDisplayPermErrors

        public void setDisplayPermErrors​(boolean displayPermErrors)
        Sets displayPermErrors.
        Specified by:
        setDisplayPermErrors in interface MultiverseCoreConfig
        Parameters:
        displayPermErrors - The new value.
      • setGlobalDebug

        public void setGlobalDebug​(int globalDebug)
        Sets globalDebug.
        Specified by:
        setGlobalDebug in interface MultiverseCoreConfig
        Parameters:
        globalDebug - The new value.
      • setMessageCooldown

        public void setMessageCooldown​(int messageCooldown)
        Sets messageCooldown.
        Specified by:
        setMessageCooldown in interface MultiverseCoreConfig
        Parameters:
        messageCooldown - The new value.
      • setVersion

        public void setVersion​(int version)
        Sets version.
        Specified by:
        setVersion in interface MultiverseCoreConfig
        Parameters:
        version - The new value.
      • setFirstSpawnWorld

        public void setFirstSpawnWorld​(java.lang.String firstSpawnWorld)
        Sets firstSpawnWorld.
        Specified by:
        setFirstSpawnWorld in interface MultiverseCoreConfig
        Parameters:
        firstSpawnWorld - The new value.
      • setTeleportCooldown

        public void setTeleportCooldown​(int teleportCooldown)
        Sets portalCooldown.
        Specified by:
        setTeleportCooldown in interface MultiverseCoreConfig
        Parameters:
        teleportCooldown - The new value.
      • setSilentStart

        public void setSilentStart​(boolean silentStart)
        Description copied from interface: MultiverseCoreConfig
        Sets whether to suppress startup messages.
        Specified by:
        setSilentStart in interface MultiverseCoreConfig
        Parameters:
        silentStart - true to suppress messages.
      • getSilentStart

        public boolean getSilentStart()
        Description copied from interface: MultiverseCoreConfig
        Whether we are suppressing startup messages.
        Specified by:
        getSilentStart in interface MultiverseCoreConfig
        Returns:
        true if we are suppressing startup messages.
      • setUseDefaultPortalSearch

        public void setUseDefaultPortalSearch​(boolean useDefaultPortalSearch)
        Description copied from interface: MultiverseCoreConfig
        Sets whether or not to let Bukkit determine portal search radius on its own or if Multiverse should give input.
        Specified by:
        setUseDefaultPortalSearch in interface MultiverseCoreConfig
        Parameters:
        useDefaultPortalSearch - True to let Bukkit determine portal search radius on its own.
      • isUsingDefaultPortalSearch

        public boolean isUsingDefaultPortalSearch()
        Description copied from interface: MultiverseCoreConfig
        Gets whether or not Bukkit will be determining portal search radius on its own or if Multiverse should help.
        Specified by:
        isUsingDefaultPortalSearch in interface MultiverseCoreConfig
        Returns:
        True means Bukkit will use its own default values.
      • setPortalSearchRadius

        public void setPortalSearchRadius​(int searchRadius)
        Description copied from interface: MultiverseCoreConfig
        Sets the radius at which vanilla style portals will be searched for to connect to worlds together.
        Specified by:
        setPortalSearchRadius in interface MultiverseCoreConfig
        Parameters:
        searchRadius - The portal search radius.
      • getPortalSearchRadius

        public int getPortalSearchRadius()
        Description copied from interface: MultiverseCoreConfig
        Gets the radius at which vanilla style portals will be searched for to connect to worlds together.
        Specified by:
        getPortalSearchRadius in interface MultiverseCoreConfig
        Returns:
        The portal search radius.
      • isAutoPurgeEnabled

        public boolean isAutoPurgeEnabled()
        Description copied from interface: MultiverseCoreConfig
        Gets whether or not the automatic purge of entities is enabled.
        Specified by:
        isAutoPurgeEnabled in interface MultiverseCoreConfig
        Returns:
        True if automatic purge is enabled.
      • setAutoPurgeEnabled

        public void setAutoPurgeEnabled​(boolean autopurge)
        Description copied from interface: MultiverseCoreConfig
        Sets whether or not the automatic purge of entities is enabled.
        Specified by:
        setAutoPurgeEnabled in interface MultiverseCoreConfig
        Parameters:
        autopurge - True if automatic purge should be enabled.
      • isShowingDonateMessage

        public boolean isShowingDonateMessage()
        Description copied from interface: MultiverseCoreConfig
        Gets whether or not the donation/patreon messages are shown.
        Specified by:
        isShowingDonateMessage in interface MultiverseCoreConfig
        Returns:
        True if donation/patreon messages should be shown.
      • setShowDonateMessage

        public void setShowDonateMessage​(boolean showDonateMessage)
        Description copied from interface: MultiverseCoreConfig
        Sets whether or not the donation/patreon messages are shown.
        Specified by:
        setShowDonateMessage in interface MultiverseCoreConfig
        Parameters:
        showDonateMessage - True if donation/patreon messages should be shown.