Class TailorConfig
java.lang.Object
org.samo_lego.fabrictailor.config.TailorConfig
- All Implemented Interfaces:
org.samo_lego.config2brigadier.common.IBrigadierConfigurator
public class TailorConfig
extends Object
implements org.samo_lego.config2brigadier.common.IBrigadierConfigurator
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
final String
final String
final String
final String
final String
boolean
long
Fields inherited from interface org.samo_lego.config2brigadier.common.IBrigadierConfigurator
COMMENT_PREFIX, CONFIG_STR, EDIT_STR, RELOAD_STR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TailorConfig
loadConfigFile
(File file, boolean serverEnvironment) Loads config file.void
save()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.samo_lego.config2brigadier.common.IBrigadierConfigurator
buildEditCommand, enableSerializedNameComments, generateCommand, generateConfigCommand, generateFieldDescription, generateFieldInfo, generateReloadableConfigCommand, getCommentPrefix, getDescription, recursiveEditCommand, recursiveReload, reload, shouldExclude, writeToFile
-
Field Details
-
_comment_allowCapes
@SerializedName("// Whether to allow players to have capes. WARNING! This will toggle ALL capes!") public final String _comment_allowCapes- See Also:
-
allowCapes
@SerializedName("allow_capes") public boolean allowCapes -
logging
-
_comment_defaultSkin
@SerializedName("// Default skin for new players. Use command `/fabrictailor setDefaultSkin` to set those values.") public final String _comment_defaultSkin- See Also:
-
defaultSkin
-
_comment_skinChangeTimer
@SerializedName("// How quickly can player change the skin, in seconds. -1 for no limit. If using this in server environment, -1 is not recommended.") public final String _comment_skinChangeTimer- See Also:
-
skinChangeTimer
@SerializedName("skin_change_timer") public long skinChangeTimer -
_comment_customSkinServer0
- See Also:
-
_comment_customSkinServer1
@SerializedName("// If not empty, you\'ll get another command /skin set custom, which will use this server.") public final String _comment_customSkinServer1- See Also:
-
_comment_customSkinServer2
@SerializedName("// Available parameters: {player}. Example: https://skins.samolego.org/{player}.png. Skins returned need to be 64x64!") public final String _comment_customSkinServer2- See Also:
-
customSkinServer
-
allowedTextureDomains
-
-
Constructor Details
-
TailorConfig
public TailorConfig()
-
-
Method Details
-
save
public void save()- Specified by:
save
in interfaceorg.samo_lego.config2brigadier.common.IBrigadierConfigurator
-
loadConfigFile
Loads config file.- Parameters:
file
- file to load the language file from.- Returns:
- TaterzenLanguage object
-