Home›Java›Mods›GeoBlock

GeoBlock

A Paper plugin that filters incoming connections by country using a local MaxMind GeoLite2 database, with bypass support for trusted IPs and UUIDs, optional VPN/proxy detection and Discord webhook notifications.

Features

Build

./gradlew build

The shaded jar is produced at build/libs/GeoBlock-<version>.jar with all runtime dependencies relocated under fr.horizonsmp.geoBlock.lib.* to avoid clashes with other plugins.

Run a development server

./gradlew runServer

Boots a Paper development server with the plugin loaded.

Requirements

Configuration

After the first run, edit the files generated under plugins/GeoBlock/:

The plugin reads config.yml, messages.yml and whitelist.yml at startup and through /geoblock reload.

Commands

Command Permission Description
/geoblock reload geoblock.command.reload Reload all configuration files
/geoblock bypass add ip <ip|cidr> geoblock.command.bypass Add an IP or CIDR to the bypass list
/geoblock bypass add uuid <uuid> geoblock.command.bypass Add a player UUID to the bypass list
/geoblock bypass remove ip <ip> geoblock.command.bypass Remove an IP/CIDR entry
/geoblock bypass remove uuid <uuid> geoblock.command.bypass Remove a UUID entry
/geoblock bypass list geoblock.command.bypass Show every bypass entry
/geoblock help geoblock.admin Print the command summary

geoblock.admin (default op) implies the two child permissions, so operators get full access on a server without LuckPerms.

License

See LICENSE file.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more