diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Permissions.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Permissions.java index c02f34c..f6e2888 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Permissions.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Permissions.java @@ -56,7 +56,7 @@ public static List getPermissions() List permissions = new ArrayList<>(fields.length); for(Field field : fields) { - if (field.getType().equals(String.class) && field.getModifiers() == Modifier.STATIC) + if (field.getType().equals(String.class) && Modifier.isStatic(field.getModifiers())) { String val = ((String) field.get(null)); if (!val.endsWith(".")) @@ -65,6 +65,10 @@ public static List getPermissions() } } } + for (int i = 1; i < 10; i++) + { + permissions.add("backpack.size." + i); + } return permissions; } } \ No newline at end of file