This commit is contained in:
zaxar163 2018-12-26 16:27:39 +03:00
parent 7f74005454
commit ebdc354468
No known key found for this signature in database
GPG key ID: E3B309DD3852DE06
4 changed files with 4 additions and 4 deletions

View file

@ -65,6 +65,7 @@
import ru.gravit.launchserver.manangers.BuildHookManager;
import ru.gravit.launchserver.manangers.MirrorManager;
import ru.gravit.launchserver.manangers.ModulesManager;
import ru.gravit.launchserver.manangers.ReconfigurableManager;
import ru.gravit.launchserver.manangers.ReloadManager;
import ru.gravit.launchserver.manangers.SessionManager;
import ru.gravit.launchserver.response.Response;

View file

@ -2,7 +2,6 @@
import ru.gravit.launchserver.LaunchServer;
import ru.gravit.launchserver.command.Command;
import ru.gravit.utils.helper.LogHelper;
public class ReloadListCommand extends Command {
public ReloadListCommand(LaunchServer server) {

View file

@ -23,7 +23,8 @@ public String getUsageDescription() {
return "Change authProvider";
}
@Override
@SuppressWarnings("resource")
@Override
public void invoke(String... args) throws Exception {
verifyArgs(args,2);
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)
{
AcceptAuthProvider provider = new AcceptAuthProvider();
AcceptAuthProvider provider = new AcceptAuthProvider();
providersCache[index] = server.config.authProvider[index];
server.config.authProvider[index] = provider;
LogHelper.info("AuthProvider[%d] is AcceptAuthProvider",index);

View file

@ -1,7 +1,6 @@
package ru.gravit.launchserver.manangers;
import ru.gravit.launchserver.Reconfigurable;
import ru.gravit.launchserver.Reloadable;
import ru.gravit.utils.helper.LogHelper;
import ru.gravit.utils.helper.VerifyHelper;