Browse Source

fixed broken permission detection

mastercake10 7 years ago
parent
commit
ed498c8631
2 changed files with 2 additions and 3 deletions
  1. 1 2
      src/de/Linus122/customoregen/Events.java
  2. 1 1
      src/plugin.yml

+ 1 - 2
src/de/Linus122/customoregen/Events.java

@@ -36,8 +36,7 @@ public class Events implements Listener {
 						if (gc2 == null) {
 							continue;
 						}
-
-						if (p.hasPermission(gc2.permission) && islandLevel >= gc2.unlock_islandLevel) {
+						if ((p.hasPermission(gc2.permission) || gc2.permission.length() == 0) && islandLevel >= gc2.unlock_islandLevel) {
 							// Weiter
 							gc = gc2;
 						}

+ 1 - 1
src/plugin.yml

@@ -1,5 +1,5 @@
 name: CustomOreGen
-version: 1.2.3
+version: 1.2.31
 description: Controls the Ore-Generator
 author: Linus122
 soft-depends: [ASkyBlock, AcidIsland, uSkyBlock]