this plugin was built using IP2Location.
A simple PaperMC plugin that blocks players from countries you don't allow
- Block or allow players by country code (ISO alpha-2)
- Exclude specific IPs from blocking
- Uses IP2Location LITE geolocation database
- Simple configuration via
config.yml
- Download the latest release
.jarfile. - Drop it into your
plugins/folder on your PaperMC server. - Start the server to generate the config.
- Edit
plugins/IPguard/config.ymlto define allowed countries and IP exceptions.
enabled: true
#Whether the IPGuard service is enabled or not.
# Set to true to enable the service, or false to disable it.
log-level: INFO
#What sort of log level to use for the IPGuard service.
# Options include: INFO, NONE
allowed-countries:
- SK
- CZ
- DE
//This means poeple from Slovakia,Czech Republic and Germany can join the server
excluded-ips:
- 192.0.2.0
- 192.0.2.255
//IPs that are outside of the allowed countries that can join too
Kick-message: "Access denied. Your IP address is not allowed to access this service."
#Message displayed when a user's IP address is not allowed to access the service.