mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-29 14:58:29 +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:
@@ -50,6 +50,8 @@ public class BungeeListener extends VPNExecutor implements Listener {
|
||||
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().getAddress().getAddress()
|
||||
.getHostAddress())
|
||||
|| AntiVPN.getInstance().getConfig().getPrefixWhitelists().stream()
|
||||
.anyMatch(prefix -> event.getPlayer().getName().startsWith(prefix))) return;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class BungeePlugin extends Plugin {
|
||||
|
||||
//Loading plugin
|
||||
BungeeCord.getInstance().getLogger().info("Starting AntiVPN services...");
|
||||
AntiVPN.start(new BungeeConfig(), new BungeeListener(), new BungeePlayerExecutor());
|
||||
AntiVPN.start(new BungeeConfig(), new BungeeListener(), new BungeePlayerExecutor(), getDataFolder());
|
||||
|
||||
if(AntiVPN.getInstance().getConfig().metrics()) {
|
||||
BungeeCord.getInstance().getLogger().info("Starting bStats metrics...");
|
||||
|
||||
Reference in New Issue
Block a user