Skip to content

Commit c7e94bd

Browse files
committed
Change updater check target file
1 parent 892da49 commit c7e94bd

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

Version_Info.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"Version_Channels": {
3+
"Stable": {
4+
"Latest_Version_Number": 118,
5+
"Log_Level": "Info",
6+
"Actions": [],
7+
"Message": {
8+
"en-US": "§bA new version of PSR (\"2.19.4\") is available!\n§bDownload here: https://www.spigotmc.org/resources/protocolstringreplacer.96573/"
9+
}
10+
}
11+
},
12+
"Version_Actions": {
13+
"0-999": {
14+
"Log_Level": "Info",
15+
"Actions": [],
16+
"Message_Times": 1,
17+
"Notify_In_Game": false,
18+
"Message": {
19+
"en-US": "§bEnjoy PSR? Join our Discord: https://discord.gg/zwzzkmYCBb",
20+
"zh-CN": "§b喜欢PSR吗? 欢迎加入我们的 QQ群: 422532220 !"
21+
}
22+
},
23+
"0-45": {
24+
"Log_Level": "Error",
25+
"Actions": ["Prohibit"],
26+
"Message_Times": 1,
27+
"Message": {
28+
"en-US": "§cThe version of PSR you are running has been prohibited by the server. This is usually due to a serious problem. Please update the plugin.",
29+
"zh-CN": "§c您使用的版本已被远程服务器禁止. 这通常是因为该版本存在重大问题. 请更新插件."
30+
}
31+
}
32+
}
33+
}

bukkit/src/main/java/io/github/rothes/protocolstringreplacer/Updater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void initMetrics() {
117117

118118
private String getJson(String domain, int tryTime) {
119119
try (
120-
InputStream stream = new URL("https://" + domain + "/Rothes/ProtocolStringReplacer/master/Version%20Infos.json")
120+
InputStream stream = new URL("https://" + domain + "/Rothes/ProtocolStringReplacer/master/Version_Info.json")
121121
.openStream();
122122
BufferedReader reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8))
123123
){

0 commit comments

Comments
 (0)