Search in sources :

Example 1 with Spf

use of net.wurstclient.features.Spf in project Wurst-MC-1.12 by Wurst-Imperium.

the class FeaturesCmd method call.

@Override
public void call(String[] args) throws CmdException {
    if (args.length != 0)
        throw new CmdSyntaxError();
    ChatUtils.message("> All features: " + wurst.navigator.countAllFeatures());
    ChatUtils.message("> Mods: " + wurst.mods.countMods());
    ChatUtils.message("> Commands: " + wurst.commands.countCommands());
    ChatUtils.message("> Special features: " + wurst.special.countFeatures());
    int settings = 0, bypasses = 0;
    for (Mod mod : wurst.mods.getAllMods()) {
        settings += mod.getSettings().size();
        if (mod.getClass().getAnnotation(Mod.Bypasses.class).mineplex())
            bypasses++;
    }
    ChatUtils.message("> NoCheat bypasses (mods only): " + bypasses);
    for (Cmd cmd : wurst.commands.getAllCommands()) settings += cmd.getSettings().size();
    for (Spf spf : wurst.special.getAllFeatures()) settings += spf.getSettings().size();
    ChatUtils.message("> Settings: " + settings);
}
Also used : Mod(net.wurstclient.features.Mod) Spf(net.wurstclient.features.Spf) Cmd(net.wurstclient.features.Cmd)

Aggregations

Cmd (net.wurstclient.features.Cmd)1 Mod (net.wurstclient.features.Mod)1 Spf (net.wurstclient.features.Spf)1