3.3 update to 4.0-DEV
This commit is contained in:
parent
621458f59a
commit
ac44919662
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>net.t2code</groupId>
|
||||
<artifactId>T2C-OPSecurity</artifactId>
|
||||
<version>3.3_DEV-24</version>
|
||||
<version>4.0_DEV</version>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
|
@ -21,9 +21,9 @@ 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<String>) 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;
|
||||
if (permWhitelist(player, debug)){
|
||||
Bukkit.getScheduler().runTask(Main.getPlugin(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@ -32,6 +32,7 @@ public class PermissionCheck {
|
||||
});
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user