mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-08-31 01:29:34 +02: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('.', '_'));
|
||||
} catch (Throwable t) {} // ...
|
||||
if (type != null) {
|
||||
checkTypes.addAll(APIUtils.getChildren(type)); // Includes type.
|
||||
checkTypes.addAll(APIUtils.getWithChildren(type)); // Includes type.
|
||||
}
|
||||
}
|
||||
if (checkTypes.isEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user