Class Requirements
java.lang.Object
ua.mcchickenstudio.opencreative.settings.Requirements
Requirements
This class represents a requirements for players to change or to do something.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns maximum length of world's custom ID.intReturns minimal length of world's custom ID.@NotNull StringReturns pattern for world's custom ID.intReturns maximum length of module's description.intReturns minimal length of module's description.intReturns maximum length of module's name.intReturns minimal length of module's name.intReturns how many seconds need to pass after player join to be able to create a world.intReturns maximum length of world's description.intReturns minimal length of world's description.intReturns maximum length of world's name.intReturns minimal length of world's name.intReturns how many seconds need to pass after world's creation to allow players to like or dislike world.voidload()Loads settings of coding from configuration.
-
Constructor Details
-
Requirements
public Requirements()
-
-
Method Details
-
load
public void load()Loads settings of coding from configuration. -
getCustomIdPattern
Returns pattern for world's custom ID.- Returns:
- pattern of world custom ID.
-
getCustomIdMaxLength
public int getCustomIdMaxLength()Returns maximum length of world's custom ID.- Returns:
- limit of world's custom ID length.
-
getCustomIdMinLength
public int getCustomIdMinLength()Returns minimal length of world's custom ID.- Returns:
- minimal length of custom ID.
-
getWorldDescriptionMaxLength
public int getWorldDescriptionMaxLength()Returns maximum length of world's description.- Returns:
- limit of world's description length.
-
getWorldDescriptionMinLength
public int getWorldDescriptionMinLength()Returns minimal length of world's description.- Returns:
- minimal length of description.
-
getWorldNameMaxLength
public int getWorldNameMaxLength()Returns maximum length of world's name.- Returns:
- limit of world's name length.
-
getWorldNameMinLength
public int getWorldNameMinLength()Returns minimal length of world's name.- Returns:
- minimal length of name.
-
getWorldCreationMinSeconds
public int getWorldCreationMinSeconds()Returns how many seconds need to pass after player join to be able to create a world.- Returns:
- minimal amount of seconds to be able to create a world.
-
getWorldReputationMinSeconds
public int getWorldReputationMinSeconds()Returns how many seconds need to pass after world's creation to allow players to like or dislike world.- Returns:
- minimal amount of seconds to be able to like or dislike a world.
-
getModuleDescriptionMaxLength
public int getModuleDescriptionMaxLength()Returns maximum length of module's description.- Returns:
- limit of module's description length.
-
getModuleDescriptionMinLength
public int getModuleDescriptionMinLength()Returns minimal length of module's description.- Returns:
- minimal length of description.
-
getModuleNameMaxLength
public int getModuleNameMaxLength()Returns maximum length of module's name.- Returns:
- limit of module's name length.
-
getModuleNameMinLength
public int getModuleNameMinLength()Returns minimal length of module's name.- Returns:
- minimal length of name.
-