Adding bypass permission and updating version to 1.0.1

This commit is contained in:
Dawson Hessler
2021-06-15 15:40:19 -04:00
parent 68cd7ef810
commit f5fd7001e7
10 changed files with 12 additions and 10 deletions
@@ -41,6 +41,7 @@ public class BungeeListener extends VPNExecutor implements Listener {
@EventHandler
public void onListener(final PostLoginEvent event) {
if(event.getPlayer().hasPermission("antivpn.bypass")) return;
checkIp(event.getPlayer().getAddress().getAddress().getHostAddress(),
AntiVPN.getInstance().getConfig().cachedResults(), result -> {
if(result.isSuccess() && result.isProxy()) {