Class DownloaderSettings

java.lang.Object
ua.mcchickenstudio.opencreative.settings.DownloaderSettings

public final class DownloaderSettings extends Object

DownloaderSettings

This class represents a settings of downloader.
  • Constructor Details

    • DownloaderSettings

      public DownloaderSettings()
  • Method Details

    • load

      public void load()
      Loads settings of downloader from configuration.
    • getMaxArchiveSize

      public int getMaxArchiveSize()
      Returns maximum size of world archive in megabytes.
      Returns:
      maximum size of archive in MB.
    • getMaxStoringTime

      public int getMaxStoringTime()
      Returns how many seconds need to pass before world archive will be removed automatically.
      Returns:
      maximum time of storing archive in temp folder in seconds.