Class WorldAliasSettings
- java.lang.Object
-
- com.djrapitops.plan.settings.config.WorldAliasSettings
-
@Singleton public class WorldAliasSettings extends java.lang.Object
Class responsible for managing config settings for World Aliases.
-
-
Constructor Summary
Constructors Constructor Description WorldAliasSettings(dagger.Lazy<PlanConfig> config, dagger.Lazy<Locale> locale, dagger.Lazy<Formatters> formatters, Processing processing, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWorld(java.lang.String world)
Adds a new World to the config section.java.util.Map<java.lang.String,GMTimes>
getGMTimesPerAlias(WorldTimes worldTimes)
java.lang.String
getLongestWorldPlayed(ActiveSession session)
java.lang.String
getLongestWorldPlayed(FinishedSession session)
java.util.Map<java.lang.String,java.lang.Long>
getPlaytimePerAlias(WorldTimes worldTimes)
-
-
-
Constructor Detail
-
WorldAliasSettings
@Inject public WorldAliasSettings(dagger.Lazy<PlanConfig> config, dagger.Lazy<Locale> locale, dagger.Lazy<Formatters> formatters, Processing processing, ErrorLogger errorLogger)
-
-
Method Detail
-
addWorld
public void addWorld(java.lang.String world)
Adds a new World to the config section.If exists does not override old value.
- Parameters:
world
- World name
-
getPlaytimePerAlias
public java.util.Map<java.lang.String,java.lang.Long> getPlaytimePerAlias(WorldTimes worldTimes)
-
getGMTimesPerAlias
public java.util.Map<java.lang.String,GMTimes> getGMTimesPerAlias(WorldTimes worldTimes)
-
getLongestWorldPlayed
public java.lang.String getLongestWorldPlayed(ActiveSession session)
-
getLongestWorldPlayed
public java.lang.String getLongestWorldPlayed(FinishedSession session)
-
-