Package gwlpr.mapshard.models.enums

Examples of gwlpr.mapshard.models.enums.ChatChannel


{

    @Test
    public void testChatChannelValues()
    {
        ChatChannel chan = ChatChannel.getFromPrefix('@');
        assert chan.equals(ChatChannel.Guild);

        chan = ChatChannel.getFromPrefix('?');
        assert chan == null;
    }
View Full Code Here


    {
        ClientBean client = ClientBean.get(chatMsg.getChannel());

        // extract the whole prefix message, get the channel prefix and the actual message
        String prfMsg = chatMsg.getPrefixedMessage();
        ChatChannel chan = ChatChannel.getFromPrefix(prfMsg.charAt(0));
        String msg = prfMsg.substring(1);

        // failcheck
        if (chan == null || msg == null || msg.equals("")) { return; }
       
        LOGGER.debug("Got new chat message for channel {}: {}", chan.name(), msg);

        // if it's a special channel we might want to distinguish between
        // different actions.
        // there is 3 types: the usual ingame stuff; whisper; command
View Full Code Here

TOP

Related Classes of gwlpr.mapshard.models.enums.ChatChannel

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.