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
  • 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

      public TailorConfig.Logging 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

      @SerializedName("default_skin") public TailorConfig.DefaultSkin 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

      @SerializedName("// Custom skin server URL.") public final String _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

      @SerializedName("custom_skin_server") public String customSkinServer
    • allowedTextureDomains

      @SerializedName("texture_allowed_domains") public Set<String> allowedTextureDomains
  • Constructor Details

    • TailorConfig

      public TailorConfig()
  • Method Details

    • save

      public void save()
      Specified by:
      save in interface org.samo_lego.config2brigadier.common.IBrigadierConfigurator
    • loadConfigFile

      public static TailorConfig loadConfigFile(File file, boolean serverEnvironment)
      Loads config file.
      Parameters:
      file - file to load the language file from.
      Returns:
      TaterzenLanguage object