use of com.djrapitops.plan.settings.config.WorldAliasSettings in project Plan by plan-player-analytics.
the class PieGraphFactory method worldPie.
public WorldPie worldPie(WorldTimes worldTimes) {
WorldAliasSettings worldAliasSettings = config.getWorldAliasSettings();
Map<String, Long> playtimePerAlias = worldAliasSettings.getPlaytimePerAlias(worldTimes);
Map<String, GMTimes> gmTimesPerAlias = worldAliasSettings.getGMTimesPerAlias(worldTimes);
String[] colors = theme.getPieColors(ThemeVal.GRAPH_WORLD_PIE);
boolean orderByPercentage = config.isTrue(DisplaySettings.ORDER_WORLD_PIE_BY_PERCENTAGE);
return new WorldPie(playtimePerAlias, gmTimesPerAlias, colors, orderByPercentage);
}
Aggregations