mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 12:35:12 +01:00
Allow the * value to work with numerical permissions.
This commit is contained in:
parent
ba1e08d808
commit
3bbec08295
@ -214,7 +214,10 @@ public class PlayerUtils {
|
|||||||
|
|
||||||
if (index == -1 || index == perm.length()) continue;
|
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) {
|
if (number >= highest) {
|
||||||
highest = number;
|
highest = number;
|
||||||
|
Loading…
Reference in New Issue
Block a user