2020-04-15 14:22:03 +02:00
|
|
|
package com.minelittlepony.unicopia;
|
2019-01-13 21:07:44 +01:00
|
|
|
|
2020-04-25 13:32:33 +02:00
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.Set;
|
2019-01-13 21:07:44 +01:00
|
|
|
|
2020-04-25 13:32:33 +02:00
|
|
|
import com.minelittlepony.common.util.GamePaths;
|
|
|
|
import com.minelittlepony.common.util.settings.JsonConfig;
|
2021-02-07 18:57:35 +01:00
|
|
|
import com.minelittlepony.common.util.settings.Setting;
|
2019-01-13 21:07:44 +01:00
|
|
|
|
2020-04-25 13:32:33 +02:00
|
|
|
public class Config extends JsonConfig {
|
2021-02-07 18:57:35 +01:00
|
|
|
/*private final String speciesWhiteListComment =
|
2019-01-27 20:34:02 +01:00
|
|
|
"A whitelist of races permitted on the server. " +
|
|
|
|
"Races added to this list can be used by anyone, whilst any ones left off are not permitted. " +
|
2021-02-07 18:57:35 +01:00
|
|
|
"An empty list disables whitelisting entirely.";*/
|
|
|
|
|
|
|
|
public final Setting<Set<Race>> speciesWhiteList = value("server", "speciesWhiteList", new HashSet<>());
|
2019-01-13 21:07:44 +01:00
|
|
|
|
2021-02-07 18:57:35 +01:00
|
|
|
/*private final String preferredRaceComment =
|
2019-01-27 20:34:02 +01:00
|
|
|
"The default preferred race. " +
|
|
|
|
"This is the race a client requests when first joining a game. " +
|
2021-02-07 18:57:35 +01:00
|
|
|
"It is the default used both when Mine Little Pony is not installed and when they respond with a human race.";*/
|
2019-01-27 20:34:02 +01:00
|
|
|
|
2021-02-07 18:57:35 +01:00
|
|
|
public final Setting<Race> preferredRace = value("client", "preferredRace", Race.EARTH);
|
2019-01-27 20:34:02 +01:00
|
|
|
|
2021-02-07 18:57:35 +01:00
|
|
|
/*private final String ignoreMineLPComment =
|
|
|
|
"If true Mine Little Pony will not be considered when determining the race to use. " +
|
|
|
|
"The result will always be what is set by this config file.";*/
|
|
|
|
public final Setting<Boolean> ignoreMineLP = value("client", "ignoreMineLP", false);
|
2019-01-27 20:34:02 +01:00
|
|
|
|
2021-02-07 18:57:35 +01:00
|
|
|
public Config() {
|
|
|
|
super(GamePaths.getConfigDirectory().resolve("unicopia.json"));
|
2019-01-27 20:34:02 +01:00
|
|
|
}
|
2019-01-13 21:07:44 +01:00
|
|
|
}
|