mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-01 22:16:36 +00:00
release
This commit is contained in:
1 parent
c3699928dd
commit
2bb85e32b2
2 files changed
+3
-3
No files matched your search
@@ -37,7 +37,7 @@ public class LangAssets {
|
||||
|
||||
FileUtil.create(file);
|
||||
|
||||
String url = "https://github.com/nulli0n/NexEngine-spigot/raw/master/assets/" + langCode + ".yml";
|
||||
String url = Placeholders.GITHUB_URL + "/raw/master/assets/" + langCode + ".yml";
|
||||
try (BufferedInputStream in = new BufferedInputStream(new URL(url).openStream());
|
||||
FileOutputStream fileOutputStream = new FileOutputStream(file)) {
|
||||
plugin.info("Downloading '" + langCode + "' assets from github...");
|
||||
|
||||
@@ -12,8 +12,8 @@ import java.util.function.UnaryOperator;
|
||||
|
||||
public class Placeholders {
|
||||
|
||||
public static final String GITHUB_URL = "https://github.com/nulli0n/nightcore-spigot/";
|
||||
public static final String WIKI_MAIN_URL = GITHUB_URL + "wiki/";
|
||||
public static final String GITHUB_URL = "https://github.com/nulli0n/nightcore-spigot";
|
||||
public static final String WIKI_MAIN_URL = GITHUB_URL + "/wiki/";
|
||||
public static final String WIKI_ITEMS_URL = WIKI_MAIN_URL + "Configuration-Tips#item-sections";
|
||||
public static final String WIKI_LANG_URL = WIKI_MAIN_URL + "Language-Config";
|
||||
|
||||
|
||||
Reference in new issue
Block a user