mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
Fixes.
This commit is contained in:
parent
7f74005454
commit
ebdc354468
4 changed files with 4 additions and 4 deletions
|
@ -65,6 +65,7 @@
|
||||||
import ru.gravit.launchserver.manangers.BuildHookManager;
|
import ru.gravit.launchserver.manangers.BuildHookManager;
|
||||||
import ru.gravit.launchserver.manangers.MirrorManager;
|
import ru.gravit.launchserver.manangers.MirrorManager;
|
||||||
import ru.gravit.launchserver.manangers.ModulesManager;
|
import ru.gravit.launchserver.manangers.ModulesManager;
|
||||||
|
import ru.gravit.launchserver.manangers.ReconfigurableManager;
|
||||||
import ru.gravit.launchserver.manangers.ReloadManager;
|
import ru.gravit.launchserver.manangers.ReloadManager;
|
||||||
import ru.gravit.launchserver.manangers.SessionManager;
|
import ru.gravit.launchserver.manangers.SessionManager;
|
||||||
import ru.gravit.launchserver.response.Response;
|
import ru.gravit.launchserver.response.Response;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import ru.gravit.launchserver.LaunchServer;
|
import ru.gravit.launchserver.LaunchServer;
|
||||||
import ru.gravit.launchserver.command.Command;
|
import ru.gravit.launchserver.command.Command;
|
||||||
import ru.gravit.utils.helper.LogHelper;
|
|
||||||
|
|
||||||
public class ReloadListCommand extends Command {
|
public class ReloadListCommand extends Command {
|
||||||
public ReloadListCommand(LaunchServer server) {
|
public ReloadListCommand(LaunchServer server) {
|
||||||
|
|
|
@ -23,7 +23,8 @@ public String getUsageDescription() {
|
||||||
return "Change authProvider";
|
return "Change authProvider";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@SuppressWarnings("resource")
|
||||||
|
@Override
|
||||||
public void invoke(String... args) throws Exception {
|
public void invoke(String... args) throws Exception {
|
||||||
verifyArgs(args,2);
|
verifyArgs(args,2);
|
||||||
if(providersCache == null) providersCache = new AuthProvider[server.config.authProvider.length];
|
if(providersCache == null) providersCache = new AuthProvider[server.config.authProvider.length];
|
||||||
|
@ -32,7 +33,7 @@ public void invoke(String... args) throws Exception {
|
||||||
{
|
{
|
||||||
if(providersCache[index] == null)
|
if(providersCache[index] == null)
|
||||||
{
|
{
|
||||||
AcceptAuthProvider provider = new AcceptAuthProvider();
|
AcceptAuthProvider provider = new AcceptAuthProvider();
|
||||||
providersCache[index] = server.config.authProvider[index];
|
providersCache[index] = server.config.authProvider[index];
|
||||||
server.config.authProvider[index] = provider;
|
server.config.authProvider[index] = provider;
|
||||||
LogHelper.info("AuthProvider[%d] is AcceptAuthProvider",index);
|
LogHelper.info("AuthProvider[%d] is AcceptAuthProvider",index);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package ru.gravit.launchserver.manangers;
|
package ru.gravit.launchserver.manangers;
|
||||||
|
|
||||||
import ru.gravit.launchserver.Reconfigurable;
|
import ru.gravit.launchserver.Reconfigurable;
|
||||||
import ru.gravit.launchserver.Reloadable;
|
|
||||||
import ru.gravit.utils.helper.LogHelper;
|
import ru.gravit.utils.helper.LogHelper;
|
||||||
import ru.gravit.utils.helper.VerifyHelper;
|
import ru.gravit.utils.helper.VerifyHelper;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue