Class MyPetGlobal.Repository

java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.Repository
Enclosing class:
MyPetGlobal

public static final class MyPetGlobal.Repository extends Object
Where pets are persisted, and how that storage is reached.
  • Field Details

    • EXTERNAL_LOAD_DELAY

      public static final ConfigKey<Long> EXTERNAL_LOAD_DELAY
      How long, in ticks, to delay loading a joining player's pets. Applies only to external storage; SQLite always uses one tick.

      MyPet.Repository.LoadDelay -- default 20L.

    • REPOSITORY_TYPE

      public static final ConfigKey<String> REPOSITORY_TYPE
      Where pets are stored. One of SQLite, MySQL or MongoDB.

      MyPet.Repository.Type -- default "SQLite".

    • CONVERT_FROM

      public static final ConfigKey<String> CONVERT_FROM
      Migrates existing pets out of this storage type into the configured one on start. Empty disables migration.

      MyPet.Repository.ConvertFrom -- default "".