Skip to content

Commit

Permalink
升级底层jar和优化
Browse files Browse the repository at this point in the history
  • Loading branch information
handy-git committed Nov 29, 2024
1 parent 5b96f40 commit 36b7075
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spigot-api.vesion>1.21.3-R0.1-SNAPSHOT</spigot-api.vesion>
<lombok.version>1.18.34</lombok.version>
<HandyLib.version>3.13.5</HandyLib.version>
<lombok.version>1.18.36</lombok.version>
<HandyLib.version>3.13.8</HandyLib.version>
<ip2region.version>2.7.0</ip2region.version>
<placeholderapi.version>2.10.5</placeholderapi.version>
<annotations.version>24.1.0</annotations.version>
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/cn/handyplus/region/Ip2region.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @author handy
*/
public class Ip2region extends JavaPlugin {
private static Ip2region INSTANCE;
public static Ip2region INSTANCE;

@Override
public void onEnable() {
Expand Down Expand Up @@ -42,8 +42,4 @@ public void onDisable() {
InitApi.disable();
}

public static Ip2region getInstance() {
return INSTANCE;
}

}
4 changes: 4 additions & 0 deletions src/main/java/cn/handyplus/region/command/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* 命令
*/
package cn.handyplus.region.command;
4 changes: 4 additions & 0 deletions src/main/java/cn/handyplus/region/constants/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* 常量
*/
package cn.handyplus.region.constants;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import cn.handyplus.lib.annotation.TableField;
import cn.handyplus.lib.annotation.TableName;
import cn.handyplus.lib.db.enums.IndexEnum;
import cn.handyplus.lib.db.IndexEnum;
import lombok.Getter;
import lombok.Setter;

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/cn/handyplus/region/hook/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* 对接第三方
*/
package cn.handyplus.region.hook;
4 changes: 4 additions & 0 deletions src/main/java/cn/handyplus/region/listener/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* 监听器
*/
package cn.handyplus.region.listener;
4 changes: 4 additions & 0 deletions src/main/java/cn/handyplus/region/param/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* 参数
*/
package cn.handyplus.region.param;
4 changes: 4 additions & 0 deletions src/main/java/cn/handyplus/region/service/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* 数据库服务
*/
package cn.handyplus.region.service;
2 changes: 1 addition & 1 deletion src/main/java/cn/handyplus/region/util/ConfigUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static void init() {
// 只加载一次db
File file = new File(InitApi.PLUGIN.getDataFolder(), "ip2region.xdb");
if (!file.exists()) {
Ip2region.getInstance().saveResource("ip2region.xdb", false);
Ip2region.INSTANCE.saveResource("ip2region.xdb", false);
file = new File(InitApi.PLUGIN.getDataFolder(), "ip2region.xdb");
}
DB_PATH = file.getPath();
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/cn/handyplus/region/util/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* 工具类
*/
package cn.handyplus.region.util;

0 comments on commit 36b7075

Please sign in to comment.