[FIX] Инициализация DaoProvider

This commit is contained in:
Gravit 2019-07-01 15:31:50 +07:00
parent c44208fed3
commit 4bb5993ef0
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -214,10 +214,12 @@ public void init() {
}
permissionsHandler.init(server);
hwidHandler.init();
dao.init(server);
if (protectHandler != null) {
protectHandler.checkLaunchServerLicense();
}
server.registerObject("permissionsHandler", permissionsHandler);
server.registerObject("daoProvider", dao);
for (AuthProviderPair pair : auth) {
server.registerObject("auth.".concat(pair.name).concat(".provider"), pair.provider);
server.registerObject("auth.".concat(pair.name).concat(".handler"), pair.handler);
@ -570,6 +572,7 @@ public LaunchServer(Path dir, boolean testEnv, String[] args) throws IOException
}
config.permissionsHandler.init(this);
config.hwidHandler.init();
config.dao.init(this);
if (config.protectHandler != null) {
config.protectHandler.checkLaunchServerLicense();
}