Skip to content

Commit

Permalink
1.1.8 升级jar
Browse files Browse the repository at this point in the history
  • Loading branch information
handy-git committed Jan 19, 2025
1 parent 0d3eaee commit 821e2f7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
4 changes: 4 additions & 0 deletions README-CH.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ testIp6: 测试IP

[![Star History Chart](https://api.star-history.com/svg?repos=handy-git/ip2region&type=Date)](https://star-history.com/#handy-git/ip2region&Date)

## gitSponsors

[<img src="https://api.gitsponsors.com/api/badge/img?id=550263180" height="20">](https://api.gitsponsors.com/api/badge/link?p=plVBiIaCrQ+yGb6hPNP8H+8YhPeaEAOIaOeA69o4K0M7HKvozxAV41ckkeMd8DpY91VVJ/ULd4vlhG4Z8jipQQ==)

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ testIp6: test IPv6 address
## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=handy-git/ip2region&type=Date)](https://star-history.com/#handy-git/ip2region&Date)

## gitSponsors

[<img src="https://api.gitsponsors.com/api/badge/img?id=550263180" height="20">](https://api.gitsponsors.com/api/badge/link?p=plVBiIaCrQ+yGb6hPNP8H+8YhPeaEAOIaOeA69o4K0M7HKvozxAV41ckkeMd8DpY91VVJ/ULd4vlhG4Z8jipQQ==)
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<groupId>cn.handyplus.region</groupId>
<artifactId>ip2region</artifactId>
<version>1.1.7</version>
<version>1.1.8</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spigot-api.vesion>1.21.3-R0.1-SNAPSHOT</spigot-api.vesion>
<spigot-api.vesion>1.21.4-R0.1-SNAPSHOT</spigot-api.vesion>
<lombok.version>1.18.36</lombok.version>
<HandyLib.version>3.13.8</HandyLib.version>
<HandyLib.version>3.15.5</HandyLib.version>
<ip2region.version>2.7.0</ip2region.version>
<placeholderapi.version>2.10.5</placeholderapi.version>
<placeholderapi.version>2.11.6</placeholderapi.version>
<annotations.version>24.1.0</annotations.version>
</properties>

Expand Down
5 changes: 1 addition & 4 deletions src/main/java/cn/handyplus/region/Ip2region.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cn.handyplus.region;

import cn.handyplus.lib.InitApi;
import cn.handyplus.lib.constants.BaseConstants;
import cn.handyplus.lib.util.MessageUtil;
import cn.handyplus.region.hook.PlaceholderUtil;
import cn.handyplus.region.util.ConfigUtil;
Expand All @@ -23,16 +22,14 @@ public void onEnable() {
InitApi initApi = InitApi.getInstance(this);
// 加载配置
ConfigUtil.init();

// 加载变量
new PlaceholderUtil(this).register();
// 初始化
initApi.initListener("cn.handyplus.region.listener")
.initCommand("cn.handyplus.region.command")
.enableSql("cn.handyplus.region.enter")
.addMetrics(16650)
.checkVersion(ConfigUtil.CONFIG.getBoolean(BaseConstants.IS_CHECK_UPDATE));

.checkVersion();
MessageUtil.sendConsoleMessage(ChatColor.GREEN + "已成功载入服务器!");
MessageUtil.sendConsoleMessage(ChatColor.GREEN + "Author:handy WIKI: https://ricedoc.handyplus.cn/wiki/ip2region/README/");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package cn.handyplus.region.listener;

import cn.handyplus.lib.annotation.HandyListener;
import cn.handyplus.lib.constants.BaseConstants;
import cn.handyplus.lib.expand.adapter.HandySchedulerUtil;
import cn.handyplus.lib.util.HandyHttpUtil;
import cn.handyplus.region.constants.BaseIpConstants;
import cn.handyplus.region.enter.Ip2regionEnter;
import cn.handyplus.region.service.Ip2regionService;
import cn.handyplus.region.util.ConfigUtil;
import cn.handyplus.region.util.IpUtil;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
Expand Down Expand Up @@ -60,10 +58,6 @@ public void onJoin(PlayerJoinEvent event) {
*/
@EventHandler(priority = EventPriority.HIGHEST)
public void onOpPlayerJoin(PlayerJoinEvent event) {
// op登录发送更新提醒
if (!ConfigUtil.CONFIG.getBoolean(BaseConstants.IS_CHECK_UPDATE_TO_OP_MSG)) {
return;
}
HandyHttpUtil.checkVersion(event.getPlayer());
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Ip2region
main: cn.handyplus.region.Ip2region
version: 1.1.7
version: 1.1.8
author: handy
api-version: 1.13
website: https://ricedoc.handyplus.cn/wiki/ip2region/log
Expand Down

1 comment on commit 821e2f7

@troy
Copy link

@troy troy commented on 821e2f7 Jan 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, GitSponsors are spammers - avoid them like the plague. They scraped email addresses and sent a mountain of opt-out spam about their scam. Some victims posted screenshots here: https://www.linkedin.com/posts/mrpunyapal_its-a-scam-be-aware-its-not-from-github-activity-7286252237243244544-XnLh , https://old.reddit.com/r/github/comments/1i4vchd/just_got_the_suspicious_email

I'm sorry to be the bearer of bad news. Unless you want to help spammers or scammers, this isn't something to promote.

Please sign in to comment.