Package com.ensifera.animosity.craftirc

Examples of com.ensifera.animosity.craftirc.IRCEvent


        this.plugin = (CraftIRC) plugin;
    }

    @EventHandler
    public void onCustomEvent(IRCEvent event) {
        IRCEvent ircEvent = (IRCEvent) event;
        if (!ircEvent.isHandled()) {
            switch (ircEvent.eventMode) {
            case COMMAND:
                if (ircEvent.msgData.message.startsWith("example")) {
                    this.plugin.sendMessageToTag("This is an example custom CraftIRC command. The pen is %red%rrrrrrr%blue%oyal blue!",
                            ircEvent.msgData.srcChannelTag);
                    ircEvent.setHandled(true);
                }
            case AUTHED_COMMAND:
                if (ircEvent.msgData.message.startsWith("authexample")) {
                    this.plugin.sendMessageToTag("This is an example custom %u%authenticated%u% CraftIRC command.",
                            ircEvent.msgData.srcChannelTag);
                    ircEvent.setHandled(true);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.ensifera.animosity.craftirc.IRCEvent

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.