Search in sources :

Example 1 with Features

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();
        });
    });
}
Also used : Timer(gg.projecteden.nexus.utils.Timer) Commands(gg.projecteden.nexus.framework.commands.Commands) Features(gg.projecteden.nexus.framework.features.Features)

Aggregations

Commands (gg.projecteden.nexus.framework.commands.Commands)1 Features (gg.projecteden.nexus.framework.features.Features)1 Timer (gg.projecteden.nexus.utils.Timer)1