mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-25 16:49:40 +03:00
23 lines
752 B
Java
23 lines
752 B
Java
package ru.gravit.launchserver.components;
|
|
|
|
import ru.gravit.launchserver.LaunchServer;
|
|
import ru.gravit.utils.ProviderMap;
|
|
|
|
public abstract class Component {
|
|
public static ProviderMap<Component> providers = new ProviderMap<>();
|
|
private static boolean registredComp = false;
|
|
|
|
public static void registerComponents() {
|
|
if (!registredComp) {
|
|
providers.register("authLimiter", AuthLimiterComponent.class);
|
|
providers.register("commandRemover", CommandRemoverComponent.class);
|
|
registredComp = true;
|
|
}
|
|
}
|
|
|
|
public abstract void preInit(LaunchServer launchServer);
|
|
|
|
public abstract void init(LaunchServer launchServer);
|
|
|
|
public abstract void postInit(LaunchServer launchServer);
|
|
}
|