Package com.onarandombox.MultiverseCore
Class MultiverseCoreConfiguration
- java.lang.Object
-
- me.main__.util.SerializationConfig.SerializationConfig
-
- com.onarandombox.MultiverseCore.MultiverseCoreConfiguration
-
- All Implemented Interfaces:
MultiverseCoreConfig,org.bukkit.configuration.serialization.ConfigurationSerializable
public class MultiverseCoreConfiguration extends me.main__.util.SerializationConfig.SerializationConfig implements MultiverseCoreConfig
Our configuration.
-
-
Constructor Summary
Constructors Constructor Description MultiverseCoreConfiguration()MultiverseCoreConfiguration(java.util.Map<java.lang.String,java.lang.Object> values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDisplayPermErrors()Gets displayPermErrors.booleangetEnableBuscript()Gets enableBuscript.booleangetEnforceAccess()Gets enforceAccess.booleangetFirstSpawnOverride()Gets firstSpawnOverride.java.lang.StringgetFirstSpawnWorld()Gets firstSpawnWorld.intgetGlobalDebug()Gets globalDebug.static MultiverseCoreConfigurationgetInstance()Gets the statically saved instance.intgetMessageCooldown()Gets messageCooldown.intgetPortalSearchRadius()Gets the radius at which vanilla style portals will be searched for to connect to worlds together.booleangetPrefixChat()Gets prefixChat.java.lang.StringgetPrefixChatFormat()Gets prefixChatFormat.booleangetSilentStart()Whether we are suppressing startup messages.intgetTeleportCooldown()Gets portalCooldown.booleangetTeleportIntercept()Gets teleportIntercept.booleangetUseAsyncChat()Gets useasyncchat.doublegetVersion()Gets version.booleanisAutoPurgeEnabled()Gets whether or not the automatic purge of entities is enabled.static booleanisSet()booleanisShowingDonateMessage()Gets whether or not the donation/patreon messages are shown.booleanisUsingDefaultPortalSearch()Gets whether or not Bukkit will be determining portal search radius on its own or if Multiverse should help.voidsetAutoPurgeEnabled(boolean autopurge)Sets whether or not the automatic purge of entities is enabled.booleansetConfigProperty(java.lang.String property, java.lang.String value)Sets a property using aString.protected voidsetDefaults()voidsetDisplayPermErrors(boolean displayPermErrors)Sets displayPermErrors.voidsetEnableBuscript(boolean enableBuscript)Sets enableBuscript.voidsetEnforceAccess(boolean enforceAccess)Sets enforceAccess.voidsetFirstSpawnOverride(boolean firstSpawnOverride)Sets firstSpawnOverride.voidsetFirstSpawnWorld(java.lang.String firstSpawnWorld)Sets firstSpawnWorld.voidsetGlobalDebug(int globalDebug)Sets globalDebug.static voidsetInstance(MultiverseCoreConfiguration instance)Sets the statically saved instance.voidsetMessageCooldown(int messageCooldown)Sets messageCooldown.voidsetPortalSearchRadius(int searchRadius)Sets the radius at which vanilla style portals will be searched for to connect to worlds together.voidsetPrefixChat(boolean prefixChat)Sets prefixChat.voidsetPrefixChatFormat(java.lang.String prefixChatFormat)Sets prefixChatFormat.voidsetShowDonateMessage(boolean showDonateMessage)Sets whether or not the donation/patreon messages are shown.voidsetSilentStart(boolean silentStart)Sets whether to suppress startup messages.voidsetTeleportCooldown(int teleportCooldown)Sets portalCooldown.voidsetTeleportIntercept(boolean teleportIntercept)Sets teleportIntercept.voidsetUseAsyncChat(boolean useAsyncChat)Sets useasyncchat.voidsetUseDefaultPortalSearch(boolean useDefaultPortalSearch)Sets whether or not to let Bukkit determine portal search radius on its own or if Multiverse should give input.voidsetVersion(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
-
-
-
-
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:
setDefaultsin classme.main__.util.SerializationConfig.SerializationConfig
-
setConfigProperty
public boolean setConfigProperty(java.lang.String property, java.lang.String value)Sets a property using aString.- Specified by:
setConfigPropertyin interfaceMultiverseCoreConfig- Parameters:
property- The name of the property.value- The value.- Returns:
- True on success, false if the operation failed.
-
getEnforceAccess
public boolean getEnforceAccess()
Gets enforceAccess.- Specified by:
getEnforceAccessin interfaceMultiverseCoreConfig- Returns:
- enforceAccess.
-
setEnforceAccess
public void setEnforceAccess(boolean enforceAccess)
Sets enforceAccess.- Specified by:
setEnforceAccessin interfaceMultiverseCoreConfig- Parameters:
enforceAccess- The new value.
-
getPrefixChat
public boolean getPrefixChat()
Gets prefixChat.- Specified by:
getPrefixChatin interfaceMultiverseCoreConfig- Returns:
- prefixChat.
-
setPrefixChat
public void setPrefixChat(boolean prefixChat)
Sets prefixChat.- Specified by:
setPrefixChatin interfaceMultiverseCoreConfig- Parameters:
prefixChat- The new value.
-
getPrefixChatFormat
public java.lang.String getPrefixChatFormat()
Gets prefixChatFormat.- Specified by:
getPrefixChatFormatin interfaceMultiverseCoreConfig- Returns:
- prefixChatFormat.
-
setPrefixChatFormat
public void setPrefixChatFormat(java.lang.String prefixChatFormat)
Sets prefixChatFormat.- Specified by:
setPrefixChatFormatin interfaceMultiverseCoreConfig- Parameters:
prefixChatFormat- The new value.
-
getTeleportIntercept
public boolean getTeleportIntercept()
Gets teleportIntercept.- Specified by:
getTeleportInterceptin interfaceMultiverseCoreConfig- Returns:
- teleportIntercept.
-
setTeleportIntercept
public void setTeleportIntercept(boolean teleportIntercept)
Sets teleportIntercept.- Specified by:
setTeleportInterceptin interfaceMultiverseCoreConfig- Parameters:
teleportIntercept- The new value.
-
getFirstSpawnOverride
public boolean getFirstSpawnOverride()
Gets firstSpawnOverride.- Specified by:
getFirstSpawnOverridein interfaceMultiverseCoreConfig- Returns:
- firstSpawnOverride.
-
setFirstSpawnOverride
public void setFirstSpawnOverride(boolean firstSpawnOverride)
Sets firstSpawnOverride.- Specified by:
setFirstSpawnOverridein interfaceMultiverseCoreConfig- Parameters:
firstSpawnOverride- The new value.
-
getDisplayPermErrors
public boolean getDisplayPermErrors()
Gets displayPermErrors.- Specified by:
getDisplayPermErrorsin interfaceMultiverseCoreConfig- Returns:
- displayPermErrors.
-
getEnableBuscript
public boolean getEnableBuscript()
Gets enableBuscript.- Specified by:
getEnableBuscriptin interfaceMultiverseCoreConfig- Returns:
- enableBuscript.
-
setEnableBuscript
public void setEnableBuscript(boolean enableBuscript)
Sets enableBuscript.- Specified by:
setEnableBuscriptin interfaceMultiverseCoreConfig- Parameters:
enableBuscript- The new value.
-
setDisplayPermErrors
public void setDisplayPermErrors(boolean displayPermErrors)
Sets displayPermErrors.- Specified by:
setDisplayPermErrorsin interfaceMultiverseCoreConfig- Parameters:
displayPermErrors- The new value.
-
getGlobalDebug
public int getGlobalDebug()
Gets globalDebug.- Specified by:
getGlobalDebugin interfaceMultiverseCoreConfig- Returns:
- globalDebug.
-
setGlobalDebug
public void setGlobalDebug(int globalDebug)
Sets globalDebug.- Specified by:
setGlobalDebugin interfaceMultiverseCoreConfig- Parameters:
globalDebug- The new value.
-
getMessageCooldown
public int getMessageCooldown()
Gets messageCooldown.- Specified by:
getMessageCooldownin interfaceMultiverseCoreConfig- Returns:
- messageCooldown.
-
setMessageCooldown
public void setMessageCooldown(int messageCooldown)
Sets messageCooldown.- Specified by:
setMessageCooldownin interfaceMultiverseCoreConfig- Parameters:
messageCooldown- The new value.
-
getVersion
public double getVersion()
Gets version.- Specified by:
getVersionin interfaceMultiverseCoreConfig- Returns:
- version.
-
setVersion
public void setVersion(int version)
Sets version.- Specified by:
setVersionin interfaceMultiverseCoreConfig- Parameters:
version- The new value.
-
getFirstSpawnWorld
public java.lang.String getFirstSpawnWorld()
Gets firstSpawnWorld.- Specified by:
getFirstSpawnWorldin interfaceMultiverseCoreConfig- Returns:
- firstSpawnWorld.
-
setFirstSpawnWorld
public void setFirstSpawnWorld(java.lang.String firstSpawnWorld)
Sets firstSpawnWorld.- Specified by:
setFirstSpawnWorldin interfaceMultiverseCoreConfig- Parameters:
firstSpawnWorld- The new value.
-
getTeleportCooldown
public int getTeleportCooldown()
Gets portalCooldown.- Specified by:
getTeleportCooldownin interfaceMultiverseCoreConfig- Returns:
- portalCooldown.
-
setTeleportCooldown
public void setTeleportCooldown(int teleportCooldown)
Sets portalCooldown.- Specified by:
setTeleportCooldownin interfaceMultiverseCoreConfig- Parameters:
teleportCooldown- The new value.
-
setUseAsyncChat
public void setUseAsyncChat(boolean useAsyncChat)
Description copied from interface:MultiverseCoreConfigSets useasyncchat.- Specified by:
setUseAsyncChatin interfaceMultiverseCoreConfig- Parameters:
useAsyncChat- The new value.
-
getUseAsyncChat
public boolean getUseAsyncChat()
Description copied from interface:MultiverseCoreConfigGets useasyncchat.- Specified by:
getUseAsyncChatin interfaceMultiverseCoreConfig- Returns:
- useasyncchat.
-
setSilentStart
public void setSilentStart(boolean silentStart)
Description copied from interface:MultiverseCoreConfigSets whether to suppress startup messages.- Specified by:
setSilentStartin interfaceMultiverseCoreConfig- Parameters:
silentStart- true to suppress messages.
-
getSilentStart
public boolean getSilentStart()
Description copied from interface:MultiverseCoreConfigWhether we are suppressing startup messages.- Specified by:
getSilentStartin interfaceMultiverseCoreConfig- Returns:
- true if we are suppressing startup messages.
-
setUseDefaultPortalSearch
public void setUseDefaultPortalSearch(boolean useDefaultPortalSearch)
Description copied from interface:MultiverseCoreConfigSets whether or not to let Bukkit determine portal search radius on its own or if Multiverse should give input.- Specified by:
setUseDefaultPortalSearchin interfaceMultiverseCoreConfig- Parameters:
useDefaultPortalSearch- True to let Bukkit determine portal search radius on its own.
-
isUsingDefaultPortalSearch
public boolean isUsingDefaultPortalSearch()
Description copied from interface:MultiverseCoreConfigGets whether or not Bukkit will be determining portal search radius on its own or if Multiverse should help.- Specified by:
isUsingDefaultPortalSearchin interfaceMultiverseCoreConfig- Returns:
- True means Bukkit will use its own default values.
-
setPortalSearchRadius
public void setPortalSearchRadius(int searchRadius)
Description copied from interface:MultiverseCoreConfigSets the radius at which vanilla style portals will be searched for to connect to worlds together.- Specified by:
setPortalSearchRadiusin interfaceMultiverseCoreConfig- Parameters:
searchRadius- The portal search radius.
-
getPortalSearchRadius
public int getPortalSearchRadius()
Description copied from interface:MultiverseCoreConfigGets the radius at which vanilla style portals will be searched for to connect to worlds together.- Specified by:
getPortalSearchRadiusin interfaceMultiverseCoreConfig- Returns:
- The portal search radius.
-
isAutoPurgeEnabled
public boolean isAutoPurgeEnabled()
Description copied from interface:MultiverseCoreConfigGets whether or not the automatic purge of entities is enabled.- Specified by:
isAutoPurgeEnabledin interfaceMultiverseCoreConfig- Returns:
- True if automatic purge is enabled.
-
setAutoPurgeEnabled
public void setAutoPurgeEnabled(boolean autopurge)
Description copied from interface:MultiverseCoreConfigSets whether or not the automatic purge of entities is enabled.- Specified by:
setAutoPurgeEnabledin interfaceMultiverseCoreConfig- Parameters:
autopurge- True if automatic purge should be enabled.
-
isShowingDonateMessage
public boolean isShowingDonateMessage()
Description copied from interface:MultiverseCoreConfigGets whether or not the donation/patreon messages are shown.- Specified by:
isShowingDonateMessagein interfaceMultiverseCoreConfig- Returns:
- True if donation/patreon messages should be shown.
-
setShowDonateMessage
public void setShowDonateMessage(boolean showDonateMessage)
Description copied from interface:MultiverseCoreConfigSets whether or not the donation/patreon messages are shown.- Specified by:
setShowDonateMessagein interfaceMultiverseCoreConfig- Parameters:
showDonateMessage- True if donation/patreon messages should be shown.
-
-