Skip to content

tomas293/IPGuard---PaperMC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

IPGuard

this plugin was built using IP2Location.

A simple PaperMC plugin that blocks players from countries you don't allow

Features

  • 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

Installation

  1. Download the latest release .jar file.
  2. Drop it into your plugins/ folder on your PaperMC server.
  3. Start the server to generate the config.
  4. Edit plugins/IPguard/config.yml to define allowed countries and IP exceptions.

Configuration Example

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.

About

A simple PaperMC plugin that blocks unwanted traffic from different countries. You can configure which countries are allowed to join your server.

Resources

License

Stars

Watchers

Forks

Contributors

Languages