diff --git a/pom.xml b/pom.xml
index afdaa6e..0fc4c51 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,13 +6,13 @@
cn.handyplus.region
ip2region
- 1.1.3
+ 1.1.4
UTF-8
1.21-R0.1-SNAPSHOT
1.18.32
- 3.10.0
+ 3.10.1
2.7.0
2.10.5
diff --git a/src/main/java/cn/handyplus/region/Ip2region.java b/src/main/java/cn/handyplus/region/Ip2region.java
index 2cd6e7e..4a266da 100644
--- a/src/main/java/cn/handyplus/region/Ip2region.java
+++ b/src/main/java/cn/handyplus/region/Ip2region.java
@@ -34,7 +34,7 @@ public void onEnable() {
.checkVersion(ConfigUtil.CONFIG.getBoolean(BaseConstants.IS_CHECK_UPDATE), BaseIpConstants.PLUGIN_VERSION_URL);
MessageUtil.sendConsoleMessage("§a已成功载入服务器!");
- MessageUtil.sendConsoleMessage("§aAuthor:handy 使用文档: https://ricedoc.handyplus.cn/wiki/ip2region/README/");
+ MessageUtil.sendConsoleMessage("§aAuthor:handy WIKI: https://ricedoc.handyplus.cn/wiki/ip2region/README/");
}
@Override
diff --git a/src/main/java/cn/handyplus/region/api/Ip2regionApi.java b/src/main/java/cn/handyplus/region/api/Ip2regionApi.java
index 802890f..65453c7 100644
--- a/src/main/java/cn/handyplus/region/api/Ip2regionApi.java
+++ b/src/main/java/cn/handyplus/region/api/Ip2regionApi.java
@@ -39,7 +39,7 @@ public static String getNational(String ip) {
if (StrUtil.isEmpty(region)) {
return BaseIpConstants.UNKNOWN;
}
- List list = StrUtil.strToStrList(region, "|");
+ List list = StrUtil.strToStrList(region, "\\|");
String national = list.get(0);
return "0".equals(national) ? BaseIpConstants.UNKNOWN : national;
}
@@ -55,7 +55,7 @@ public static String getProvincial(String ip) {
if (StrUtil.isEmpty(region)) {
return BaseIpConstants.UNKNOWN;
}
- List list = StrUtil.strToStrList(region, "|");
+ List list = StrUtil.strToStrList(region, "\\|");
String provincial = list.get(2);
return "0".equals(provincial) ? BaseIpConstants.UNKNOWN : provincial;
}
@@ -71,7 +71,7 @@ public static String getMunicipal(String ip) {
if (StrUtil.isEmpty(region)) {
return BaseIpConstants.UNKNOWN;
}
- List list = StrUtil.strToStrList(region, "|");
+ List list = StrUtil.strToStrList(region, "\\|");
String municipal = list.get(3);
return "0".equals(municipal) ? BaseIpConstants.UNKNOWN : municipal;
}
@@ -87,7 +87,7 @@ public static String getServiceProvider(String ip) {
if (StrUtil.isEmpty(region)) {
return BaseIpConstants.UNKNOWN;
}
- List list = StrUtil.strToStrList(region, "|");
+ List list = StrUtil.strToStrList(region, "\\|");
String serviceProvider = list.get(4);
return "0".equals(serviceProvider) ? BaseIpConstants.UNKNOWN : serviceProvider;
}
diff --git a/src/main/java/cn/handyplus/region/hook/PlaceholderUtil.java b/src/main/java/cn/handyplus/region/hook/PlaceholderUtil.java
index 53dc93a..f23eb0d 100644
--- a/src/main/java/cn/handyplus/region/hook/PlaceholderUtil.java
+++ b/src/main/java/cn/handyplus/region/hook/PlaceholderUtil.java
@@ -56,7 +56,7 @@ public String onRequest(OfflinePlayer player, String identifier) {
if (StrUtil.isEmpty(region)) {
return BaseIpConstants.UNKNOWN;
}
- List list = StrUtil.strToStrList(region, "|");
+ List list = StrUtil.strToStrList(region, "\\|");
String national = list.get(0);
String provincial = list.get(2);
String municipal = list.get(3);
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index aad1a49..033fcc0 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,6 +1,6 @@
name: Ip2region
main: cn.handyplus.region.Ip2region
-version: 1.1.3
+version: 1.1.4
author: handy
api-version: 1.13
website: https://ricedoc.handyplus.cn/wiki/ip2region/log