58 lines
1.7 KiB
Java
58 lines
1.7 KiB
Java
/*
|
|
* This file is part of ViaAprilFools - https://github.com/RaphiMC/ViaAprilFools
|
|
* Copyright (C) 2023 RK_01/RaphiMC and contributors
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
package net.raphimc.viaaprilfools;
|
|
|
|
import com.viaversion.viaversion.util.Config;
|
|
|
|
import java.io.File;
|
|
import java.net.URL;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class ViaAprilFoolsConfig extends Config implements net.raphimc.viaaprilfools.platform.ViaAprilFoolsConfig {
|
|
|
|
public ViaAprilFoolsConfig(final File configFile) {
|
|
super(configFile);
|
|
}
|
|
|
|
@Override
|
|
public void reloadConfig() {
|
|
super.reloadConfig();
|
|
this.loadFields();
|
|
}
|
|
|
|
private void loadFields() {
|
|
}
|
|
|
|
@Override
|
|
public URL getDefaultConfigURL() {
|
|
return this.getClass().getClassLoader().getResource("assets/viaaprilfools/viaaprilfools.yml");
|
|
}
|
|
|
|
@Override
|
|
protected void handleConfig(Map<String, Object> map) {
|
|
}
|
|
|
|
@Override
|
|
public List<String> getUnsupportedOptions() {
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
}
|