mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
Инициализация Reconfigurable при старте лаунчсервера
This commit is contained in:
parent
c64d3b1f42
commit
56e5874205
1 changed files with 21 additions and 0 deletions
|
@ -394,6 +394,27 @@ public LaunchServer(Path dir) throws IOException, InvalidKeySpecException {
|
|||
}
|
||||
});
|
||||
|
||||
if(config.permissionsHandler instanceof Reconfigurable)
|
||||
reconfigurableManager.registerReconfigurable("permissionsHandler",(Reconfigurable) config.permissionsHandler);
|
||||
if(config.authHandler instanceof Reconfigurable)
|
||||
reconfigurableManager.registerReconfigurable("authHandler",(Reconfigurable) config.authHandler);
|
||||
for(int i=0;i<config.authProvider.length;++i)
|
||||
{
|
||||
AuthProvider provider = config.authProvider[i];
|
||||
if(provider instanceof Reconfigurable)
|
||||
reconfigurableManager.registerReconfigurable("authHandler".concat(String.valueOf(i)),(Reconfigurable) provider);
|
||||
}
|
||||
if(config.textureProvider instanceof Reconfigurable)
|
||||
reconfigurableManager.registerReconfigurable("textureProvider",(Reconfigurable) config.textureProvider);
|
||||
|
||||
Arrays.stream(config.mirrors).forEach(s -> {
|
||||
try {
|
||||
mirrorManager.addMirror(s);
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
|
||||
// init modules
|
||||
modulesManager.initModules();
|
||||
|
||||
|
|
Loading…
Reference in a new issue