public class LocaleService
extends Object
Localization service used for fetching latest locales for minigames
  • Constructor Details

    • LocaleService

      public LocaleService​( plugin)
  • Method Details

    • demandLocaleDownload

      public LocaleService.DownloadStatus demandLocaleDownload​(Locale locale)
      Sends a demand request to download latest locale from Plajer-Lair/locale_storage repository Whole repository can be seen here
      locale - locale to download
      SUCCESS for downloaded locale, FAIL for service fault, LATEST when locale is latest as one in repository
    • isValidVersion

      public boolean isValidVersion()
      Checks if plugin version allows to update locale
      true if locale can be updated for this version else cannot