Allow the * value to work with numerical permissions.

This commit is contained in:
Brianna 2021-01-22 07:58:43 -06:00
parent ba1e08d808
commit 3bbec08295

View File

@ -214,7 +214,10 @@ public class PlayerUtils {
if (index == -1 || index == perm.length()) continue;
final int number = Integer.parseInt(perm.substring(perm.lastIndexOf('.') + 1));
String numStr = perm.substring(perm.lastIndexOf('.') + 1);
if (numStr.equals("*")) return def;
final int number = Integer.parseInt(numStr);
if (number >= highest) {
highest = number;