1
0
Эх сурвалжийг харах

fixed broken permission detection

mastercake10 7 жил өмнө
parent
commit
ed498c8631

+ 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]