Skip to content

Show the geolocation of the player's IP when they join

License

Notifications You must be signed in to change notification settings

smartcmd/GeoShow

Repository files navigation

GeoShow

An AllayMC plugin that displays player's geolocation information when they join the server.

中文文档

Features

  • Join Notifications: Broadcasts player's location (Continent - Country - Province - City - ISP) when they join.
  • Offline Database: Uses ip2region for fast, offline IP lookups.
  • Auto Update: Automatically downloads/updates the database from GitHub/CDN on startup or via command.
  • Multilingual: Supports English (en_US) and Chinese (zh_CN) based on client language.

Commands

  • /geoshow update: Update ip2region database from GitHub/CDN.
  • /geoshow reload: Reload ip2region database from disk.
  • /geoshow lookup <ip>: Lookup geolocation for a specific IP.

Installation

  1. Download the latest GeoShow-x.x.x.jar from releases.
  2. Place it into your server's plugins folder.
  3. Restart the server.

The plugin will automatically download the ip2region.xdb database on first launch. If download fails (e.g. network issues), you can manually download ip2region.xdb and place it in plugins/GeoShow/ folder.

Build

./gradlew shadowJar

The output jar will be in build/libs/.

License

MIT

About

Show the geolocation of the player's IP when they join

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages