Examples of CheckDataFactory


Examples of fr.neatmonster.nocheatplus.checks.access.CheckDataFactory

            }
            final String playerName = entry.getKey();
            if (deleteData) {
                factories.clear();
                for (final CheckType type : CheckType.values()) {
                    final CheckDataFactory factory = type.getDataFactory();
                    if (factory != null) {
                        factories.add(factory);
                    }
                }
                for (final CheckDataFactory factory : factories) {
                    factory.removeData(playerName);
                }
                clearComponentData(CheckType.ALL, playerName);
                playerData.remove(playerName.toLowerCase()); // TODO
            }
            if (deleteData || deleteHistory) {
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.access.CheckDataFactory

        for (final CheckType type : APIUtils.getWithChildren(checkType)) {
            final Map<String, ExecutionHistory> map = instance.executionHistories.get(type);
            if (map != null) {
                map.clear();
            }
            final CheckDataFactory factory = type.getDataFactory();
            if (factory != null) {
                factories.add(factory);
            }
        }
        for (final CheckDataFactory factory : factories) {
            factory.removeAllData();
        }
        for (final IRemoveData rmd : instance.iRemoveData) {
            if (checkType == CheckType.ALL) {
                // Not sure this is really good, though.
                rmd.removeAllData();
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.access.CheckDataFactory

        }

        // Collect factories.
        final Set<CheckDataFactory> factories = new HashSet<CheckDataFactory>();
        for (CheckType otherType : APIUtils.getWithChildren(checkType)) {
            final CheckDataFactory otherFactory = otherType.getDataFactory();
            if (otherFactory != null) {
                factories.add(otherFactory);
            }
        }
        // Remove data.
        for (final CheckDataFactory otherFactory : factories) {
            if (otherFactory.removeData(playerName) != null) {
                had = true;
            }
        }

        if (checkType == CheckType.ALL) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.