Package ecks.services.modules

Examples of ecks.services.modules.CommandModule


        Generic.curProtocol.outPRVMSG(who, user, "\u0002COMMAND     \u0002<required argument> [optional argument]");
        Generic.curProtocol.outPRVMSG(who, user, "\u0002            Command Description\u0002");
        Generic.curProtocol.outPRVMSG(who, user, "\u0002------------------------------------------------\u0002");

        for (Map.Entry<String, CommandModule> z : who.getCommands().entrySet()) {
            CommandModule cm = z.getValue();
            if (cm.getDesc().Required_Access.ordinal() <= ((SrvAuth) Configuration.getSvc().get(Configuration.authservice)).checkAccess(user.toLowerCase()).ordinal()) {
                if (!cm.getName().startsWith("\u0001")) {
                    Generic.curProtocol.outPRVMSG(who, user, "\u0002" + util.pad(z.getKey(), 12) + "\u0002" + cm.getDesc().arguments);
                    Generic.curProtocol.outPRVMSG(who, user, "\u0002            " + cm.getDesc().help + "\u0002");
                }
            }
        }
    }
View Full Code Here


        Generic.curProtocol.outPRVMSG(who, user, "\u0002COMMAND     \u0002<required argument> [optional argument]");
        Generic.curProtocol.outPRVMSG(who, user, "\u0002            Command Description\u0002");
        Generic.curProtocol.outPRVMSG(who, user, "\u0002------------------------------------------------\u0002");

        for (Map.Entry<String, CommandModule> z : who.getCommands().entrySet()) {
            CommandModule cm = z.getValue();
            if (Configuration.getSvc().containsKey(Configuration.authservice)) {
                if (cm.getDesc().Required_Access.ordinal() <= ((SrvAuth) Configuration.getSvc().get(Configuration.authservice)).checkAccess(user.toLowerCase()).ordinal()) {
                    if (!cm.getName().startsWith("\u0001")) {
                        Generic.curProtocol.outPRVMSG(who, user, "\u0002" + util.pad(z.getKey(), 12) + "\u0002" + cm.getDesc().arguments);
                        Generic.curProtocol.outPRVMSG(who, user, "\u0002            " + cm.getDesc().help + "\u0002");
                    }
                }
            } else {
                if (!cm.getName().startsWith("\u0001")) {
                    Generic.curProtocol.outPRVMSG(who, user, "\u0002" + util.pad(z.getKey(), 12) + "\u0002" + cm.getDesc().arguments);
                    Generic.curProtocol.outPRVMSG(who, user, "\u0002            " + cm.getDesc().help + "\u0002");
                }
            }

        }
    }
View Full Code Here

        Generic.curProtocol.outPRVMSG(who, user, "\u0002COMMAND     \u0002<required argument> [optional argument]");
        Generic.curProtocol.outPRVMSG(who, user, "\u0002            Command Description\u0002");
        Generic.curProtocol.outPRVMSG(who, user, "\u0002------------------------------------------------\u0002");

        for (Map.Entry<String, CommandModule> z : who.getCommands().entrySet()) {
            CommandModule cm = z.getValue();
            if (cm.getDesc().Required_Access.ordinal() <= ((SrvAuth) Configuration.getSvc().get(Configuration.authservice)).checkAccess(user.toLowerCase()).ordinal()) {
                if (!cm.getName().startsWith("\u0001")) {
                    Generic.curProtocol.outPRVMSG(who, user, "\u0002" + util.pad(z.getKey(), 12) + "\u0002" + cm.getDesc().arguments);
                    Generic.curProtocol.outPRVMSG(who, user, "\u0002            " + cm.getDesc().help + "\u0002");
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of ecks.services.modules.CommandModule

Copyright © 2018 www.massapicom. 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.