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 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 aString
.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
-
-
-
-
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 classme.main__.util.SerializationConfig.SerializationConfig
-
setConfigProperty
public boolean setConfigProperty(java.lang.String property, java.lang.String value)
Sets a property using aString
.- Specified by:
setConfigProperty
in 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:
getEnforceAccess
in interfaceMultiverseCoreConfig
- Returns:
- enforceAccess.
-
setEnforceAccess
public void setEnforceAccess(boolean enforceAccess)
Sets enforceAccess.- Specified by:
setEnforceAccess
in interfaceMultiverseCoreConfig
- Parameters:
enforceAccess
- The new value.
-
getPrefixChat
public boolean getPrefixChat()
Gets prefixChat.- Specified by:
getPrefixChat
in interfaceMultiverseCoreConfig
- Returns:
- prefixChat.
-
setPrefixChat
public void setPrefixChat(boolean prefixChat)
Sets prefixChat.- Specified by:
setPrefixChat
in interfaceMultiverseCoreConfig
- Parameters:
prefixChat
- The new value.
-
getPrefixChatFormat
public java.lang.String getPrefixChatFormat()
Gets prefixChatFormat.- Specified by:
getPrefixChatFormat
in interfaceMultiverseCoreConfig
- Returns:
- prefixChatFormat.
-
setPrefixChatFormat
public void setPrefixChatFormat(java.lang.String prefixChatFormat)
Sets prefixChatFormat.- Specified by:
setPrefixChatFormat
in interfaceMultiverseCoreConfig
- Parameters:
prefixChatFormat
- The new value.
-
getTeleportIntercept
public boolean getTeleportIntercept()
Gets teleportIntercept.- Specified by:
getTeleportIntercept
in interfaceMultiverseCoreConfig
- Returns:
- teleportIntercept.
-
setTeleportIntercept
public void setTeleportIntercept(boolean teleportIntercept)
Sets teleportIntercept.- Specified by:
setTeleportIntercept
in interfaceMultiverseCoreConfig
- Parameters:
teleportIntercept
- The new value.
-
getFirstSpawnOverride
public boolean getFirstSpawnOverride()
Gets firstSpawnOverride.- Specified by:
getFirstSpawnOverride
in interfaceMultiverseCoreConfig
- Returns:
- firstSpawnOverride.
-
setFirstSpawnOverride
public void setFirstSpawnOverride(boolean firstSpawnOverride)
Sets firstSpawnOverride.- Specified by:
setFirstSpawnOverride
in interfaceMultiverseCoreConfig
- Parameters:
firstSpawnOverride
- The new value.
-
getDisplayPermErrors
public boolean getDisplayPermErrors()
Gets displayPermErrors.- Specified by:
getDisplayPermErrors
in interfaceMultiverseCoreConfig
- Returns:
- displayPermErrors.
-
getEnableBuscript
public boolean getEnableBuscript()
Gets enableBuscript.- Specified by:
getEnableBuscript
in interfaceMultiverseCoreConfig
- Returns:
- enableBuscript.
-
setEnableBuscript
public void setEnableBuscript(boolean enableBuscript)
Sets enableBuscript.- Specified by:
setEnableBuscript
in interfaceMultiverseCoreConfig
- Parameters:
enableBuscript
- The new value.
-
setDisplayPermErrors
public void setDisplayPermErrors(boolean displayPermErrors)
Sets displayPermErrors.- Specified by:
setDisplayPermErrors
in interfaceMultiverseCoreConfig
- Parameters:
displayPermErrors
- The new value.
-
getGlobalDebug
public int getGlobalDebug()
Gets globalDebug.- Specified by:
getGlobalDebug
in interfaceMultiverseCoreConfig
- Returns:
- globalDebug.
-
setGlobalDebug
public void setGlobalDebug(int globalDebug)
Sets globalDebug.- Specified by:
setGlobalDebug
in interfaceMultiverseCoreConfig
- Parameters:
globalDebug
- The new value.
-
getMessageCooldown
public int getMessageCooldown()
Gets messageCooldown.- Specified by:
getMessageCooldown
in interfaceMultiverseCoreConfig
- Returns:
- messageCooldown.
-
setMessageCooldown
public void setMessageCooldown(int messageCooldown)
Sets messageCooldown.- Specified by:
setMessageCooldown
in interfaceMultiverseCoreConfig
- Parameters:
messageCooldown
- The new value.
-
getVersion
public double getVersion()
Gets version.- Specified by:
getVersion
in interfaceMultiverseCoreConfig
- Returns:
- version.
-
setVersion
public void setVersion(int version)
Sets version.- Specified by:
setVersion
in interfaceMultiverseCoreConfig
- Parameters:
version
- The new value.
-
getFirstSpawnWorld
public java.lang.String getFirstSpawnWorld()
Gets firstSpawnWorld.- Specified by:
getFirstSpawnWorld
in interfaceMultiverseCoreConfig
- Returns:
- firstSpawnWorld.
-
setFirstSpawnWorld
public void setFirstSpawnWorld(java.lang.String firstSpawnWorld)
Sets firstSpawnWorld.- Specified by:
setFirstSpawnWorld
in interfaceMultiverseCoreConfig
- Parameters:
firstSpawnWorld
- The new value.
-
getTeleportCooldown
public int getTeleportCooldown()
Gets portalCooldown.- Specified by:
getTeleportCooldown
in interfaceMultiverseCoreConfig
- Returns:
- portalCooldown.
-
setTeleportCooldown
public void setTeleportCooldown(int teleportCooldown)
Sets portalCooldown.- Specified by:
setTeleportCooldown
in interfaceMultiverseCoreConfig
- Parameters:
teleportCooldown
- The new value.
-
setUseAsyncChat
public void setUseAsyncChat(boolean useAsyncChat)
Description copied from interface:MultiverseCoreConfig
Sets useasyncchat.- Specified by:
setUseAsyncChat
in interfaceMultiverseCoreConfig
- Parameters:
useAsyncChat
- The new value.
-
getUseAsyncChat
public boolean getUseAsyncChat()
Description copied from interface:MultiverseCoreConfig
Gets useasyncchat.- Specified by:
getUseAsyncChat
in interfaceMultiverseCoreConfig
- Returns:
- useasyncchat.
-
setSilentStart
public void setSilentStart(boolean silentStart)
Description copied from interface:MultiverseCoreConfig
Sets whether to suppress startup messages.- Specified by:
setSilentStart
in interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- 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 interfaceMultiverseCoreConfig
- Parameters:
showDonateMessage
- True if donation/patreon messages should be shown.
-
-