PlugList.java

codebase/src/net/sourceforge/pain/logic/event/console/command/PlugList.java · 803 B

From the archive pain_0_44.tgz

Download the archive   « Back to the archive contents

package net.sourceforge.pain.logic.event.console.command;

import net.sourceforge.pain.*;
import net.sourceforge.pain.logic.fn.*;
import net.sourceforge.pain.plugin.*;

import java.util.*;


public final class PlugList extends GrantedCommand {


    public void processCommand() throws Exception {
        List list = Core.getPluginManager().getActivePluginsList();
        MessageOutFn.outln(console, "{cActive plugins list:{x");
        for (Iterator it = list.iterator(); it.hasNext();) {
            Plugin p = (Plugin) it.next();
            MessageOutFn.outln(console, "    " + p.getPluginName());
        }
    }

    public void showHelp() {
        MessageOutFn.outln(console, command.name + ": shows active plugins list");
        MessageOutFn.outln(console, "Usage:" + command.name);
    }
}

Site Stats

Snippets: 1791
Codebases: 571