yxc0915 / playeripadmin Goto Github PK
View Code? Open in Web Editor NEW这是一个Minecraft插件,它提供了详细的玩家IP和地理位置信息查询功能。当玩家加入服务器时,插件会显示他们的地理位置(国家+省份+地级市),并且允许管理员通过`/getip`命令查询玩家的IP地址和地理位置信息。
License: MIT License
这是一个Minecraft插件,它提供了详细的玩家IP和地理位置信息查询功能。当玩家加入服务器时,插件会显示他们的地理位置(国家+省份+地级市),并且允许管理员通过`/getip`命令查询玩家的IP地址和地理位置信息。
License: MIT License
在服务器中使用IPv6登录和使用指令可以获取IP但无法获取地理位置
而我发现在你的
String apiUrl = "https://www.ip.cn/api/index?ip=" + ip + "&type=1";
中发现这个链接把我的ipv6返回为内网IP,而我的IPv6为公网IP
以下为在url api访问的结果:
以下为其他网址返回的IP:
访问主机的IP:
这是在游戏中的截图:
以上是在控制台输出的截图:
希望得到解决
注:
服务器版本为1.20.1
服务端为paper
已确定服务器网络无问题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.