diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java index 5c79bffd..5f374709 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java @@ -8,7 +8,6 @@ import ru.gravit.launcher.managers.GarbageManager; import ru.gravit.launcher.profiles.ClientProfile; import ru.gravit.launcher.serialize.signed.SignedObjectHolder; -import ru.gravit.launchserver.auth.AuthLimiter; import ru.gravit.launchserver.auth.AuthProviderPair; import ru.gravit.launchserver.auth.protect.NoProtectHandler; import ru.gravit.launchserver.auth.protect.ProtectHandler; @@ -118,8 +117,6 @@ public AuthProviderPair getAuthProviderPair() return null; } - public PermissionsHandler permissionsHandler; - public HWIDHandler hwidHandler; public HashMap components; @@ -188,13 +185,12 @@ public void verify() { throw new NullPointerException("AuthHandler must not be null"); } boolean isOneDefault = false; - for(AuthProviderPair pair : auth) - { - if(pair.isDefault) - { + for(AuthProviderPair pair : auth) { + if (pair.isDefault) { isOneDefault = true; break; } + } if(protectHandler == null) { throw new NullPointerException("ProtectHandler must not be null"); @@ -468,7 +464,6 @@ public LaunchServer(Path dir, String[] args) throws IOException, InvalidKeySpecE { config.protectHandler.checkLaunchServerLicense(); } - config.authHandler.init(); if(config.components != null) { LogHelper.debug("PreInit components");