mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 07:05:51 +01:00
Remove unused config option
This commit is contained in:
parent
ca9f71d16b
commit
05d6c92c31
@ -37,7 +37,6 @@ public class Settings {
|
|||||||
private int topLimit = 150;
|
private int topLimit = 150;
|
||||||
private boolean translateNames = false;
|
private boolean translateNames = false;
|
||||||
private boolean translateSubCommands = false;
|
private boolean translateSubCommands = false;
|
||||||
private boolean useGPS = true;
|
|
||||||
|
|
||||||
public Settings(Quests plugin) {
|
public Settings(Quests plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
@ -145,12 +144,6 @@ public class Settings {
|
|||||||
public void setTranslateSubCommands(boolean translateSubCommands) {
|
public void setTranslateSubCommands(boolean translateSubCommands) {
|
||||||
this.translateSubCommands = translateSubCommands;
|
this.translateSubCommands = translateSubCommands;
|
||||||
}
|
}
|
||||||
public boolean canUseGPS() {
|
|
||||||
return useGPS;
|
|
||||||
}
|
|
||||||
public void setUseGPS(boolean useGPS) {
|
|
||||||
this.useGPS = useGPS;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
FileConfiguration config = plugin.getConfig();
|
FileConfiguration config = plugin.getConfig();
|
||||||
@ -177,7 +170,6 @@ public class Settings {
|
|||||||
topLimit = config.getInt("top-limit", 150);
|
topLimit = config.getInt("top-limit", 150);
|
||||||
translateNames = config.getBoolean("translate-names", true);
|
translateNames = config.getBoolean("translate-names", true);
|
||||||
translateSubCommands = config.getBoolean("translate-subcommands", false);
|
translateSubCommands = config.getBoolean("translate-subcommands", false);
|
||||||
useGPS = config.getBoolean("use-gps-plugin", true);
|
|
||||||
try {
|
try {
|
||||||
config.save(new File(plugin.getDataFolder(), "config.yml"));
|
config.save(new File(plugin.getDataFolder(), "config.yml"));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user