Class PlanConfig


  • @Singleton
    public class PlanConfig
    extends Config
    Plan configuration file.
    • Constructor Detail

      • PlanConfig

        @Inject
        public PlanConfig​(PlanFiles files,
                          WorldAliasSettings worldAliasSettings,
                          net.playeranalytics.plugin.server.PluginLogger logger)
      • PlanConfig

        public PlanConfig​(java.io.File configFile,
                          PlanFiles files,
                          WorldAliasSettings worldAliasSettings,
                          net.playeranalytics.plugin.server.PluginLogger logger)
    • Method Detail

      • get

        public <T> T get​(Setting<T> setting)
      • getOrDefault

        public <T> T getOrDefault​(Setting<T> setting,
                                  T defaultValue)
      • isTrue

        public boolean isTrue​(Setting<java.lang.Boolean> setting)
      • isFalse

        public boolean isFalse​(Setting<java.lang.Boolean> setting)
      • set

        public <T> void set​(Setting<T> setting,
                            T value)
      • getTimeZone

        public java.util.TimeZone getTimeZone()
      • getTimeZoneOffsetHours

        public double getTimeZoneOffsetHours()
      • getPageExportPath

        public java.nio.file.Path getPageExportPath()
      • getJSONExportPath

        public java.nio.file.Path getJSONExportPath()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Config
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Config