Search in sources :

Example 1 with LetterEngine

use of fr.neatmonster.nocheatplus.checks.chat.analysis.engine.LetterEngine in project NoCheatPlus by NoCheatPlus.

the class Text method init.

private void init() {
    // Set some things from the global config.
    final ConfigFile config = ConfigManager.getConfigFile();
    final NoCheatPlusAPI api = NCPAPIProvider.getNoCheatPlusAPI();
    if (engine != null) {
        engine.clear();
        api.removeComponent(engine);
    }
    engine = new LetterEngine(config);
    api.addComponent(engine);
}
Also used : NoCheatPlusAPI(fr.neatmonster.nocheatplus.components.NoCheatPlusAPI) LetterEngine(fr.neatmonster.nocheatplus.checks.chat.analysis.engine.LetterEngine) ConfigFile(fr.neatmonster.nocheatplus.config.ConfigFile)

Aggregations

LetterEngine (fr.neatmonster.nocheatplus.checks.chat.analysis.engine.LetterEngine)1 NoCheatPlusAPI (fr.neatmonster.nocheatplus.components.NoCheatPlusAPI)1 ConfigFile (fr.neatmonster.nocheatplus.config.ConfigFile)1