Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-07 21:32:52 +02:00
Store config values for direct access
Dieser Commit ist enthalten in:
Ursprung
35f531d051
Commit
de2c3b3719
@ -8,15 +8,27 @@ import java.util.Collections;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public final class ViaBackwardsConfig extends Config implements nl.matsv.viabackwards.api.ViaBackwardsConfig {
|
public class ViaBackwardsConfig extends Config implements nl.matsv.viabackwards.api.ViaBackwardsConfig {
|
||||||
|
|
||||||
|
private boolean addCustomEnchantsToLore;
|
||||||
|
|
||||||
public ViaBackwardsConfig(File configFile) {
|
public ViaBackwardsConfig(File configFile) {
|
||||||
super(configFile);
|
super(configFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void reloadConfig() {
|
||||||
|
super.reloadConfig();
|
||||||
|
loadFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void loadFields() {
|
||||||
|
addCustomEnchantsToLore = getBoolean("add-custom-enchants-into-lore", true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean addCustomEnchantsToLore() {
|
public boolean addCustomEnchantsToLore() {
|
||||||
return getBoolean("add-custom-enchants-into-lore", true);
|
return addCustomEnchantsToLore;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren