Get the best; save money on overpriced plugins and block VPN users!
Simply drop the jar into your "plugins" folder. The auto-generated config should default to reasonable values for you, but you may modify it if you wish.
Drop the jar into the plugins folder and configure the "sql" section to use MySQL instead of SQLite. RabbitMQ and/or Redis are optional but highly recommended if you have multiple servers.
Bukkit: https://github.com/egg82/AntiVPN/blob/master/Bukkit/src/main/resources/config.yml
Bungee: https://github.com/egg82/AntiVPN/blob/master/Bungee/src/main/resources/config.yml
/avpnreload - Reloads the plugin configuration. This will disconnect and reconnect (if appropriate) any services configured in the config.yml file.
/avpntest - Test an IP through the various (enabled) services. Note that this forces a check so will use credits every time it's run.
/avpncheck - Check an IP using the default system. This will return exactly the same value as any other API call.
/avpnscore
avpn.admin - allows access to the /avpnreload, /avpntest, /avpncheck, and /avpnscore commands
avpn.bypass - players with this node bypass the filter entirely
According to the GDPR, you must specify that you are storing IP information to your players in a privacy policy when using this plugin (actually you need that if you're running a vanilla server without this plugin because of server logs). Depending on how data provided from this API is used, you may be required to manually remove some data from the databases.
Disclaimer: I am a plugin developer, not a lawyer. This information is provided as a "best guess" and is not legal advice.
<repository>
<id>egg82-ninja</id>
<url>https://www.myget.org/F/egg82-java/maven/</url>
</repository>
https://www.myget.org/feed/egg82-java/package/maven/ninja.egg82.plugins/AntiVPN
VPNAPI.getInstance();
...
long getCurrentSQLTime();
boolean cascade(String ip, [boolean expensive]);
ImmutableMap<String, Optional<Boolean>> testAllSources(String ip); // WARNING: Does not cache results
double consensus(String ip, [boolean expensive]);
Optional<Boolean> getSourceResult(String ip, String sourceName); // WARNING: Does not cache results
VPNAPI api = VPNAPI.getInstance();
if (api.cascade(playerIp)) {
// Do something
}
VPNAPI api = VPNAPI.getInstance();
if (api.consensus(playerIp) >= threshold) { // Anywhere from 0.0 to 1.0
// Do something
}
VPNAPI api = VPNAPI.getInstance();
ImmutableMap<String, Optional<Boolean>> response = api.testAllSources(ip);
for (Entry<String, Optional<Boolean>> kvp : response) {
// Do something
}
VPNAPI api = VPNAPI.getInstance();
Optional<Boolean> result = api.getSourceResult(playerIp);
if (!result.isPresent()) {
// Error- ran out of credits, too many attempts, etc etc
return;
}
if (result.get()) {
// Do something
} else {
// Do something else
}