@Singleton
public class WorldAliasSettings
extends java.lang.Object
Constructor and Description |
---|
WorldAliasSettings(dagger.Lazy<PlanConfig> config,
dagger.Lazy<Locale> locale,
dagger.Lazy<Formatters> formatters,
Processing processing,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and 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(Session session) |
java.util.Map<java.lang.String,java.lang.Long> |
getPlaytimePerAlias(WorldTimes worldTimes) |
@Inject public WorldAliasSettings(dagger.Lazy<PlanConfig> config, dagger.Lazy<Locale> locale, dagger.Lazy<Formatters> formatters, Processing processing, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void addWorld(java.lang.String world)
If exists does not override old value.
world
- World namepublic java.util.Map<java.lang.String,java.lang.Long> getPlaytimePerAlias(WorldTimes worldTimes)
public java.util.Map<java.lang.String,GMTimes> getGMTimesPerAlias(WorldTimes worldTimes)
public java.lang.String getLongestWorldPlayed(Session session)