use of gg.projecteden.nexus.framework.features.Features in project Nexus by ProjectEdenGG.
the class Nexus method onEnable.
@Override
public void onEnable() {
Locale.setDefault(Locale.US);
new Timer("Enable", () -> {
new Timer(" Cache Usernames", () -> OnlinePlayers.getAll().forEach(Name::of));
new Timer(" Config", this::setupConfig);
new Timer(" Databases", this::databases);
new Timer(" Hooks", this::hooks);
new Timer(" Features", () -> {
features = new Features(this, "gg.projecteden.nexus.features");
// prioritize
features.register(Chat.class, Discord.class);
features.registerAll();
});
new Timer(" Commands", () -> {
commands = new Commands(this, "gg.projecteden.nexus.features");
commands.registerAll();
});
});
}