Skip to content

Commit

Permalink
Added LinkingConfig for MiraWaNeko/DiscordIntegration#150
Browse files Browse the repository at this point in the history
(cherry picked from commit 89b5a1c)
  • Loading branch information
Mijago committed Jun 2, 2018
1 parent ae2e4f5 commit 1f05d25
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/chikachi/discord/core/config/ConfigWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import chikachi.discord.core.config.discord.DiscordConfig;
import chikachi.discord.core.config.imc.IMCConfig;
import chikachi.discord.core.config.linking.LinkingConfig;
import chikachi.discord.core.config.minecraft.MinecraftConfig;
import com.google.gson.annotations.Since;

Expand All @@ -26,6 +27,8 @@ public class ConfigWrapper {
public MinecraftConfig minecraft;
@Since(3.0)
public IMCConfig imc;
@Since(4.0)
public LinkingConfig linkingConfig;

public void fillFields() {
if (this.discord == null) {
Expand All @@ -42,5 +45,10 @@ public void fillFields() {
this.imc = new IMCConfig();
}
this.imc.fillFields();

if (this.linkingConfig == null) {
this.linkingConfig = new LinkingConfig();
}
this.linkingConfig.fillFields();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright (C) 2017 Chikachi
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see http://www.gnu.org/licenses.
*/

package chikachi.discord.core.config.linking;

import chikachi.discord.core.config.discord.CommandConfig;
import chikachi.discord.core.config.discord.DiscordMainChannelConfig;
import com.google.gson.annotations.Since;
import net.dv8tion.jda.core.entities.User;

import java.util.ArrayList;

public class LinkingConfig {
@Since(4.0)
public boolean enabled = true;

// TODO: On Link - Commands (ingame)

public void fillFields() {
}
}

0 comments on commit 1f05d25

Please sign in to comment.