mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02:00
Turned plugin analysis into suppliers for now
This commit is contained in:
parent
a730c76543
commit
cb41ad61be
@ -375,8 +375,11 @@ public class AnalysisContainer extends DataContainer {
|
||||
|
||||
private void addPluginSuppliers() {
|
||||
// TODO Refactor into a system that supports running the analysis on Bungee
|
||||
String[] navAndTabs = AnalysisPluginsTabContentCreator.createContent(getUnsafe(AnalysisKeys.PLAYERS_MUTATOR).uuids());
|
||||
putRawData(AnalysisKeys.PLUGINS_TAB_NAV, navAndTabs[0]);
|
||||
putRawData(AnalysisKeys.PLUGINS_TAB, navAndTabs[1]);
|
||||
Key<String[]> navAndTabs = new Key<>(new Type<String[]>() {}, "NAV_AND_TABS");
|
||||
putSupplier(navAndTabs, () ->
|
||||
AnalysisPluginsTabContentCreator.createContent(getUnsafe(AnalysisKeys.PLAYERS_MUTATOR).uuids())
|
||||
);
|
||||
putSupplier(AnalysisKeys.PLUGINS_TAB_NAV, () -> getUnsafe(navAndTabs)[0]);
|
||||
putSupplier(AnalysisKeys.PLUGINS_TAB, () -> getUnsafe(navAndTabs)[1]);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user