mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2026-01-06 15:51:50 +00:00
checkpoint - 12
This commit is contained in:
@@ -121,6 +121,13 @@ public enum Dependency {
|
||||
Relocation.of("examination", "net{}kyori{}examination"),
|
||||
Relocation.of("geantyref", "io{}leangen{}geantyref")
|
||||
),
|
||||
GEANTY_REF(
|
||||
"io{}leangen{}geantyref",
|
||||
"geantyref",
|
||||
"maven",
|
||||
"geantyref",
|
||||
Relocation.of("geantyref", "io{}leangen{}geantyref")
|
||||
),
|
||||
BOOSTED_YAML(
|
||||
"dev{}dejvokep",
|
||||
"boosted-yaml",
|
||||
@@ -216,13 +223,6 @@ public enum Dependency {
|
||||
return Dependency.BSTATS_BASE.getVersion();
|
||||
}
|
||||
},
|
||||
GEANTY_REF(
|
||||
"io{}leangen{}geantyref",
|
||||
"geantyref",
|
||||
"maven",
|
||||
"geantyref",
|
||||
Relocation.of("geantyref", "io{}leangen{}geantyref")
|
||||
),
|
||||
GSON(
|
||||
"com.google.code.gson",
|
||||
"gson",
|
||||
|
||||
@@ -33,7 +33,6 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* Represents a repository which contains {@link Dependency}s.
|
||||
@@ -47,8 +46,8 @@ public enum DependencyRepository {
|
||||
@Override
|
||||
protected URLConnection openConnection(Dependency dependency) throws IOException {
|
||||
URLConnection connection = super.openConnection(dependency);
|
||||
connection.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(5));
|
||||
connection.setReadTimeout((int) TimeUnit.SECONDS.toMillis(5));
|
||||
connection.setConnectTimeout(5000);
|
||||
connection.setReadTimeout(5000);
|
||||
return connection;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.stream.Stream;
|
||||
public class TranslationManager {
|
||||
|
||||
public static final Locale DEFAULT_LOCALE = Locale.ENGLISH;
|
||||
private static final List<String> locales = List.of("en", "zh_cn");
|
||||
private static final List<String> locales = List.of("en");
|
||||
|
||||
private final CustomFishingPlugin plugin;
|
||||
private final Set<Locale> installed = ConcurrentHashMap.newKeySet();
|
||||
|
||||
@@ -20,4 +20,5 @@ bstats-base=${bstats_version}
|
||||
geantyref=${geantyref_version}
|
||||
gson=${gson_version}
|
||||
caffeine=${caffeine_version}
|
||||
jedis=${jedis_version}
|
||||
jedis=${jedis_version}
|
||||
exp4j=${exp4j_version}
|
||||
Reference in New Issue
Block a user