diff --git a/OpSecurity V3/pom.xml b/OpSecurity V3/pom.xml
index 75197ae..d099dbd 100644
--- a/OpSecurity V3/pom.xml
+++ b/OpSecurity V3/pom.xml
@@ -6,7 +6,7 @@
net.t2code
T2C-OPSecurity
- 3.3_DEV-24
+ 4.0_DEV
jar
diff --git a/OpSecurity V3/src/main/java/net/t2code/opsecurity/check/PermissionCheck.java b/OpSecurity V3/src/main/java/net/t2code/opsecurity/check/PermissionCheck.java
index f86ab95..0e00098 100644
--- a/OpSecurity V3/src/main/java/net/t2code/opsecurity/check/PermissionCheck.java
+++ b/OpSecurity V3/src/main/java/net/t2code/opsecurity/check/PermissionCheck.java
@@ -21,16 +21,17 @@ public class PermissionCheck {
public static Boolean onCheck(Player player, Boolean join, String debug) {
if (!(boolean) PermissionWhitelist.VALUES.enable.getValue()) return false;
for (String perm : (List) PermissionWhitelist.VALUES.permissions.getValue()) {
- if (!player.hasPermission(perm)) return false;
+ if (!player.hasPermission(perm))continue;
T2C_Debug.debug(Main.getPlugin(), "[" + debug + "] check Permission: " + perm);
- if (permWhitelist(player, debug)) return false;
- Bukkit.getScheduler().runTask(Main.getPlugin(), new Runnable() {
- @Override
- public void run() {
- execute(player, join, perm, debug);
- }
- });
- return true;
+ if (permWhitelist(player, debug)){
+ Bukkit.getScheduler().runTask(Main.getPlugin(), new Runnable() {
+ @Override
+ public void run() {
+ execute(player, join, perm, debug);
+ }
+ });
+ return true;
+ }
}
return false;
}