mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-06 03:42:20 +00:00
Adding bypass permission and updating version to 1.0.1
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user