mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
remove api url in mineskin provider
This commit is contained in:
@@ -22,7 +22,6 @@ import org.mineskin.response.QueueResponse;
|
|||||||
|
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
@@ -31,19 +30,10 @@ public final class MineskinSkinProvider implements SkinProvider {
|
|||||||
|
|
||||||
public static final String PROVIDER_NAME = "web";
|
public static final String PROVIDER_NAME = "web";
|
||||||
|
|
||||||
private static final URI API_URI;
|
|
||||||
private static MineSkinClient MINESKIN_CLIENT;
|
private static MineSkinClient MINESKIN_CLIENT;
|
||||||
|
|
||||||
private static LoadingCache<Pair<URI, SkinVariant>, Optional<Property>> SKIN_CACHE;
|
private static LoadingCache<Pair<URI, SkinVariant>, Optional<Property>> SKIN_CACHE;
|
||||||
|
|
||||||
static {
|
|
||||||
try {
|
|
||||||
API_URI = new URI("https://api.mineskin.org");
|
|
||||||
} catch (URISyntaxException e) {
|
|
||||||
throw new IllegalArgumentException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void reload() {
|
public static void reload() {
|
||||||
var config = SkinRestorer.getConfig();
|
var config = SkinRestorer.getConfig();
|
||||||
var configApiKey = config.providersConfig().mineskin().apiKey();
|
var configApiKey = config.providersConfig().mineskin().apiKey();
|
||||||
|
|||||||
Reference in New Issue
Block a user