diff --git a/Version Infos.json b/Version Infos.json
index 0af1404..aa468d3 100644
--- a/Version Infos.json
+++ b/Version Infos.json
@@ -1,12 +1,12 @@
{
"Version_Channels": {
"Stable": {
- "Latest_Version_Number": 104,
+ "Latest_Version_Number": 105,
"Log_Level": "Info",
"Actions": [],
"Message": {
- "en-US": "§bA new version of PSR (\"2.15.0\") is available!\n§bDownload here: https://www.spigotmc.org/resources/protocolstringreplacer.96573/",
- "zh-CN": "§bProtocolStringReplacer 有新版本 (\"2.15.0\") 了!\n§b请更新您的插件: https://beta.mcbbs.net/resource/servermod/xmkw2tv1"
+ "en-US": "§bA new version of PSR (\"2.16.0\") is available!\n§bDownload here: https://www.spigotmc.org/resources/protocolstringreplacer.96573/",
+ "zh-CN": "§bProtocolStringReplacer 有新版本 (\"2.16.0\") 了!\n§b请更新您的插件: https://beta.mcbbs.net/resource/servermod/xmkw2tv1"
}
}
},
@@ -14,7 +14,7 @@
"0-999": {
"Log_Level": "Info",
"Actions": [],
- "Message_Times": 2,
+ "Message_Times": 1,
"Message": {
"en-US": "§bEnjoy PSR? Join our Discord: https://discord.gg/zwzzkmYCBb",
"zh-CN": "§b喜欢PSR吗? 欢迎加入我们的 QQ群: 422532220 !"
diff --git a/pom.xml b/pom.xml
index bb9a194..6da2204 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
me.rothes
ProtocolStringReplacer
- 2.15.0
+ 2.16.0
jar
diff --git a/src/main/java/me/rothes/protocolstringreplacer/Updater.java b/src/main/java/me/rothes/protocolstringreplacer/Updater.java
index 228bff1..9bf9c82 100644
--- a/src/main/java/me/rothes/protocolstringreplacer/Updater.java
+++ b/src/main/java/me/rothes/protocolstringreplacer/Updater.java
@@ -27,8 +27,8 @@
public class Updater implements Listener {
- private final String VERSION_CHANNCEL = "Stable";
- private final int VERSION_NUMBER = 104;
+ private static final String VERSION_CHANCEL = "Stable";
+ private static final int VERSION_NUMBER = 105;
private final HashMap msgTimesMap = new HashMap<>();
private final List messages = new ArrayList<>();
private final ProtocolStringReplacer plugin;
@@ -123,15 +123,15 @@ private void checkJson(String json) {
JsonObject channels = root.getAsJsonObject("Version_Channels");
messages.clear();
- if (channels.has(VERSION_CHANNCEL)) {
- JsonObject channel = channels.getAsJsonObject(VERSION_CHANNCEL);
+ if (channels.has(VERSION_CHANCEL)) {
+ JsonObject channel = channels.getAsJsonObject(VERSION_CHANCEL);
if (channel.has("Message")
&& channel.getAsJsonPrimitive("Latest_Version_Number").getAsInt() > VERSION_NUMBER) {
sendJsonMessage(channel, "updater");
}
} else {
- ProtocolStringReplacer.warn(PsrLocalization.getLocaledMessage("Console-Sender.Messages.Updater.Invalid-Channel", VERSION_CHANNCEL));
- messages.add(PsrLocalization.getLocaledMessage("Console-Sender.Messages.Updater.Invalid-Channel", VERSION_CHANNCEL));
+ ProtocolStringReplacer.warn(PsrLocalization.getLocaledMessage("Console-Sender.Messages.Updater.Invalid-Channel", VERSION_CHANCEL));
+ messages.add(PsrLocalization.getLocaledMessage("Console-Sender.Messages.Updater.Invalid-Channel", VERSION_CHANCEL));
return;
}