mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-04 15:31:53 +03:00
26 lines
912 B
Java
26 lines
912 B
Java
package pro.gravit.launchserver.components;
|
|
|
|
import pro.gravit.launchserver.LaunchServer;
|
|
import pro.gravit.utils.ProviderMap;
|
|
|
|
public abstract class Component {
|
|
public static final ProviderMap<Component> providers = new ProviderMap<>();
|
|
private static boolean registredComp = false;
|
|
protected transient String componentName;
|
|
|
|
public static void registerComponents() {
|
|
if (!registredComp) {
|
|
providers.register("authLimiter", AuthLimiterComponent.class);
|
|
providers.register("commandRemover", CommandRemoverComponent.class);
|
|
providers.register("proguard", ProGuardComponent.class);
|
|
providers.register("whitelist", WhitelistComponent.class);
|
|
registredComp = true;
|
|
}
|
|
}
|
|
|
|
public abstract void init(LaunchServer launchServer);
|
|
|
|
public final void setComponentName(String s) {
|
|
this.componentName = s;
|
|
}
|
|
}
|