Fix MockDiscordSRV

This commit is contained in:
Vankka 2023-06-18 23:47:18 +03:00
parent 6de141ea1d
commit 9def895a04
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -23,8 +23,10 @@ import com.discordsrv.common.bootstrap.LifecycleManager;
import com.discordsrv.common.command.game.handler.ICommandHandler;
import com.discordsrv.common.config.connection.ConnectionConfig;
import com.discordsrv.common.config.main.MainConfig;
import com.discordsrv.common.config.main.PluginIntegrationConfig;
import com.discordsrv.common.config.manager.ConnectionConfigManager;
import com.discordsrv.common.config.manager.MainConfigManager;
import com.discordsrv.common.config.manager.manager.ServerConfigManager;
import com.discordsrv.common.console.Console;
import com.discordsrv.common.debug.data.OnlineMode;
import com.discordsrv.common.logging.Logger;
@ -133,7 +135,17 @@ public class MockDiscordSRV extends AbstractDiscordSRV<IBootstrap, MainConfig, C
@Override
public MainConfigManager<MainConfig> configManager() {
return null;
return new ServerConfigManager<MainConfig>(this) {
@Override
public MainConfig createConfiguration() {
return new MainConfig() {
@Override
public PluginIntegrationConfig integrations() {
return null;
}
};
}
};
}
@Override