package io.github.waterfallmc.waterfall.conf;

import lombok.*;

import java.io.File;
import java.util.concurrent.TimeUnit;

import net.md_5.bungee.conf.Configuration;
import net.md_5.bungee.conf.YamlConfig;

@Getter
public class WaterfallConfiguration extends Configuration {

    /*
     * Throttling options
     * Helps prevent players from overloading the servers behind us
     */

    /**
     * How often players are allowed to send tab throttle.
     * Value in milliseconds.
     * <p/>
     * Default is one packet per second.
     */
    private int tabThrottle = (int) TimeUnit.MILLISECONDS.convert(1, TimeUnit.SECONDS);

    /**
     * Join throttle
     * Value in milliseconds.
     * <p/>
     * Default is one join per-ip every 4 seconds
     */
    private int joinThrottle = (int) TimeUnit.MILLISECONDS.convert(4, TimeUnit.SECONDS);

    /**
     * If metrics is enabled
     * <p>
     * Default is true (enabled)
     */
    private boolean metrics = true;

    @Override
    public void load() {
        super.load();
        YamlConfig config = new YamlConfig(new File("waterfall.yml"));
        config.load(false); // Load, but no permissions
        // Throttling options
        tabThrottle = config.getInt("throttling.tab_complete", tabThrottle);
        joinThrottle = config.getInt("throttling.join", joinThrottle);
        metrics = config.getBoolean("metrics", metrics);
    }
}

@@ -206,16 +206,8 @@
 g;%0A%0A
-@Getter%0A
 publ
@@ -1393,11 +1393,259 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public long getTabThrottle() %7B%0A        return tabThrottle;%0A    %7D%0A%0A    @Override%0A    public long getJoinThrottle() %7B%0A        return joinThrottle;%0A    %7D%0A%0A    @Override%0A    public boolean isMetrics() %7B%0A        return metrics;%0A    %7D
 %0A%7D%0A

Fix build errors