Examples of ChatManager


Examples of com.bekvon.bukkit.residence.chat.ChatManager

                }
            }
            gmanager = new PermissionManager(this.getConfig());
            imanager = new WorldItemManager(this.getConfig());
            wmanager = new WorldFlagManager(this.getConfig());
            chatmanager = new ChatManager();
            rentmanager = new RentManager();
            for (String lang : validLanguages) {
                try {
                    if (this.checkNewLanguageVersion(lang)) {
                        this.writeDefaultLanguageFile(lang);
View Full Code Here

Examples of com.gmail.nossr50.chat.ChatManager

            mcMMO.p.debug(player.getName() + "is chatting, but is currently not logged in to the server.");
            mcMMO.p.debug("Party & Admin chat will not work properly for this player.");
            return;
        }

        ChatManager chatManager = null;

        if (mcMMOPlayer.isChatEnabled(ChatMode.PARTY)) {
            Party party = mcMMOPlayer.getParty();

            if (party == null) {
                mcMMOPlayer.disableChat(ChatMode.PARTY);
                player.sendMessage(LocaleLoader.getString("Commands.Party.None"));
                return;
            }

            chatManager = ChatManagerFactory.getChatManager(plugin, ChatMode.PARTY);
            ((PartyChatManager) chatManager).setParty(party);
        }
        else if (mcMMOPlayer.isChatEnabled(ChatMode.ADMIN)) {
            chatManager = ChatManagerFactory.getChatManager(plugin, ChatMode.ADMIN);
        }

        if (chatManager != null) {
            chatManager.handleChat(player, event.getMessage(), event.isAsynchronous());
            event.setCancelled(true);
        }
    }
View Full Code Here

Examples of com.gmail.nossr50.chat.ChatManager

    public static void toggleAdminChat(String playerName) {
        UserManager.getPlayer(playerName).toggleChat(ChatMode.ADMIN);
    }

    private static ChatManager getPartyChatManager(Plugin plugin, String party) {
        ChatManager chatManager = ChatManagerFactory.getChatManager(plugin, ChatMode.PARTY);
        ((PartyChatManager) chatManager).setParty(PartyManager.getParty(party));

        return chatManager;
    }
View Full Code Here

Examples of floobits.windows.ChatManager

        Flog.statusMessage(message, notificationType, project);
    }

    @Override
    public void loadChatManager() {
        chatManager = new ChatManager(this);
    }
View Full Code Here

Examples of io.socket.test.chatapp.ChatManager

        socketIOServlet = new BaseSocketIOServlet(socketManager);
        ServletRegistration.Dynamic registration = context.addServlet("socket.io", socketIOServlet);
        registration.addMapping("/socket.io/*");
        registration.setAsyncSupported(true);
        registration.setLoadOnStartup(1);
        chatManager = new ChatManager(socketManager.of(SocketManager.DEFAULT_NAMESPACE_NAME));
        chatManager.setup();
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.textchat.client.ChatManager

    public PresenceInfo getMe() {
        return me;
    }

    public void startTextChat(WonderlandIdentity remote) {
        ChatManager chatManager = ChatManager.getChatManager();
        String remoteUser = remote.getUsername();
        chatManager.startChat(remoteUser);
    }
View Full Code Here

Examples of org.jivesoftware.smack.ChatManager

        }

        for(String toUser : toUsers){

            ChatManager chatmanager = connection.getChatManager();
            Chat chat = chatmanager.createChat(toUser, null);

            try {
                // google bounces back the default message types, you must use chat
                Message msg = new Message(toUser, Message.Type.chat);
                msg.setBody(text);
View Full Code Here

Examples of org.jivesoftware.smack.ChatManager

  public void deregisterControllerListener(String username, Controller controller) {
      listeners.remove(username+controller.hashCode());
  }
 
  public Chat createChat(final String username, String chatPartnerJid, final Controller controller) {
    ChatManager chatmanager = getInstantMessagingClient(username).getConnection().getChatManager();
    Chat chat = chatmanager.createChat(chatPartnerJid, new MessageListener() {

      public void processMessage(Chat chat, Message message) {
        message.setProperty("receiveTime", new Long(new Date().getTime()));
        GenericEventListener listener = listeners.get(username+controller.hashCode());
        listener.event(new InstantMessagingEvent(message, "chatmessage"));
View Full Code Here

Examples of org.jivesoftware.smack.ChatManager

    public void process(Exchange exchange) {
        String threadId = exchange.getExchangeId();

        try {
            ChatManager chatManager = endpoint.getConnection().getChatManager();
            Chat chat = chatManager.getThreadChat(threadId);

            if (chat == null) {
                chat = chatManager.createChat(getParticipant(), threadId, new MessageListener() {
                    public void processMessage(Chat chat, Message message) {
                        // not here to do conversation
                    }
                });
            }
View Full Code Here

Examples of org.jivesoftware.smack.ChatManager

        }

        for(String toUser : toUsers){

            ChatManager chatmanager = connection.getChatManager();
            Chat chat = chatmanager.createChat(toUser, null);

            try {
                // google bounces back the default message types, you must use chat
                Message msg = new Message(toUser, Message.Type.chat);
                msg.setBody(text);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.