package com.namelessmc.plugin.spigot;

import org.bukkit.configuration.file.FileConfiguration;

import com.namelessmc.plugin.common.ApiProvider;

public class ApiProviderImpl extends ApiProvider {

	private String apiUrl;
	private boolean debug;

	void loadConfiguration(final FileConfiguration config) {
		this.apiUrl = config.getString("api-url");
		this.debug = config.getBoolean("api-debug-mode", false);
	}

	@Override
	protected String getApiUrl() {
		return this.apiUrl;
	}

	@Override
	protected boolean getDebug() {
		return this.debug;
	}

}

@@ -402,16 +402,41 @@
 false);%0A
+%09%09this.clearCachedApi();%0A
 %09%7D%0A%0A%09@Ov

clear cached api when reloading