package tc.oc.commons.bukkit.flairs;

import org.bukkit.configuration.Configuration;
import org.bukkit.configuration.ConfigurationSection;
import javax.inject.Inject;

import static com.google.common.base.Preconditions.checkNotNull;

public class FlairConfiguration {

    private final ConfigurationSection config;

    @Inject
    FlairConfiguration(Configuration config) {
        this.config = checkNotNull(config.getConfigurationSection("flairs"));
    }

    public boolean overheadFlair() {
        return config.getBoolean("overhead-flair", false);
    }

    public int maxFlairs() {
        return config.getInt("max-flairs", -1);
    }
}

@@ -533,22 +533,16 @@
 overhead
--flair
 %22, false
@@ -614,18 +614,13 @@
 nt(%22
-max-flairs
+limit
 %22, -

Change flair config keys