mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-06 19:18:07 +01:00
Add missing size permissions to permissions list
This commit is contained in:
parent
0d880fe4f7
commit
b1235c4b74
@ -56,7 +56,7 @@ public static List<String> getPermissions()
|
||||
List<String> 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<String> getPermissions()
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int i = 1; i < 10; i++)
|
||||
{
|
||||
permissions.add("backpack.size." + i);
|
||||
}
|
||||
return permissions;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user