Removed unnecessary Settings class

This commit is contained in:
Rsl1122 2019-09-21 12:25:18 +03:00
parent f27aece88b
commit cc0737d6da
2 changed files with 0 additions and 42 deletions

View File

@ -1,39 +0,0 @@
/*
* This file is part of Player Analytics (Plan).
*
* Plan is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License v3 as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Plan 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
*/
package com.djrapitops.plan.settings.config.paths;
import com.djrapitops.plan.settings.config.paths.key.Setting;
import com.djrapitops.plan.settings.config.paths.key.StringListSetting;
import com.djrapitops.plan.settings.config.paths.key.StringSetting;
import java.util.List;
/**
* {@link Setting} values that are in "Plugins" section.
*
* @author Rsl1122
*/
public class PluginDataSettings {
public static final Setting<String> PLUGIN_BUYCRAFT_SECRET = new StringSetting("Plugins.BuyCraft.Secret");
public static final Setting<List<String>> HIDE_FACTIONS = new StringListSetting("Plugins.Factions.HideFactions");
public static final Setting<List<String>> HIDE_TOWNS = new StringListSetting("Plugins.Towny.HideTowns");
private PluginDataSettings() {
/* static variable class */
}
}

View File

@ -84,7 +84,6 @@ public class ConfigSettingKeyTest {
DisplaySettings.class,
ExportSettings.class,
FormatSettings.class,
PluginDataSettings.class,
PluginSettings.class,
TimeSettings.class,
WebserverSettings.class
@ -108,8 +107,6 @@ public class ConfigSettingKeyTest {
}) {
settings.addAll(FieldFetcher.getPublicStaticFields(settingKeyClass, Setting.class));
}
settings.add(PluginDataSettings.PLUGIN_BUYCRAFT_SECRET);
// Server settings contained in the key classes, remove
settings.remove(PluginSettings.SERVER_NAME);
settings.remove(PluginSettings.PROXY_COPY_CONFIG);