mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-09 05:07:38 +00:00
1.5.1
- Added ip exemptions in addition to the existing player exemptions./ - Fixing System.out usage warnings that some users were experiencing. - Fixing MySQL drivers not loading on some servers. - Fixing bug that would make whitelisted players not load for awhile after server starts
This commit is contained in:
@@ -26,6 +26,8 @@ public class VelocityListener extends VPNExecutor {
|
||||
if(event.getPlayer().hasPermission("antivpn.bypass") //Has bypass permission
|
||||
|| AntiVPN.getInstance().getExecutor().isWhitelisted(event.getPlayer().getUniqueId()) //Is exempt
|
||||
//Or has a name that starts with a certain prefix. This is for Bedrock exempting.
|
||||
|| AntiVPN.getInstance().getExecutor().isWhitelisted(event.getPlayer().getRemoteAddress()
|
||||
.getAddress().getHostAddress())
|
||||
|| AntiVPN.getInstance().getConfig().getPrefixWhitelists().stream()
|
||||
.anyMatch(prefix -> event.getPlayer().getUsername().startsWith(prefix))) return;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public class VelocityPlugin {
|
||||
|
||||
//Loading plugin
|
||||
logger.info("Starting AntiVPN services...");
|
||||
AntiVPN.start(new VelocityConfig(), new VelocityListener(), new VelocityPlayerExecutor());
|
||||
AntiVPN.start(new VelocityConfig(), new VelocityListener(), new VelocityPlayerExecutor(), configDir.toFile());
|
||||
|
||||
if(AntiVPN.getInstance().getConfig().metrics()) {
|
||||
logger.info("Starting metrics...");
|
||||
|
||||
Reference in New Issue
Block a user