mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-31 07:40:16 +01:00
Fix CheckType parsing for "ncp top".
This commit is contained in:
parent
6b71692a40
commit
07af2f687a
@ -176,7 +176,7 @@ public class TopCommand extends BaseCommand{
|
|||||||
type = CheckType.valueOf(args[i].trim().toUpperCase().replace('-', '_').replace('.', '_'));
|
type = CheckType.valueOf(args[i].trim().toUpperCase().replace('-', '_').replace('.', '_'));
|
||||||
} catch (Throwable t) {} // ...
|
} catch (Throwable t) {} // ...
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
checkTypes.addAll(APIUtils.getChildren(type)); // Includes type.
|
checkTypes.addAll(APIUtils.getWithChildren(type)); // Includes type.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (checkTypes.isEmpty()) {
|
if (checkTypes.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user