mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2025-01-08 19:17:40 +01:00
Platform now takes a config file instead of config folder
This commit is contained in:
parent
7075fbde23
commit
2994804565
@ -35,8 +35,8 @@ import java.util.logging.Logger;
|
||||
|
||||
public interface ViaAprilFoolsPlatform {
|
||||
|
||||
default void init(final File dataFolder) {
|
||||
final ViaAprilFoolsConfig config = new ViaAprilFoolsConfig(new File(dataFolder, "viaaprilfools.yml"));
|
||||
default void init(final File configFile) {
|
||||
final ViaAprilFoolsConfig config = new ViaAprilFoolsConfig(configFile);
|
||||
config.reload();
|
||||
ViaAprilFools.init(this, config);
|
||||
Via.getManager().getConfigurationProvider().register(config);
|
||||
|
Loading…
Reference in New Issue
Block a user