Examples of sendChatMessage()


Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

      if (params.size() > 0) {
         player.setDamage((Boolean)params.get(0));
      } else {
         player.setDamage(!player.getDamage());
      }
      player.sendChatMessage("Player damage was " +
               FontColour.AQUA + (player.getDamage() ? "enabled" : "disabled"));
   }

   /**
    * @see com.sijobe.spc.wrapper.CommandBase#getParameters()
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.sendChatMessage()

         } else {
            instantMine = ((Boolean)params.get(0));
         }
         config.set("instantMine", instantMine);
         super.saveSettings(player);
         player.sendChatMessage("Instant mining " + (instantMine?"enabled.":"disabled."));
      } else {
         throw new CommandException("Non-client command");
      }
   }
View Full Code Here

Examples of net.minecraft.client.entity.EntityClientPlayerMP.sendChatMessage()

    }

    public static void askSeed(){
        EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
        if(player == null) return;
        player.sendChatMessage("/seed"); //Send the /seed command to the server
        seedAsked = true;
    }

    public static void reset(){
        seedFound = false;
View Full Code Here

Examples of net.solosky.maplefetion.FetionClient.sendChatMessage()

      LoginState state = client.syncLogin();
      if(state==LoginState.LOGIN_SUCCESS){  //登录成功
        System.out.println("登录成功,正在发送消息至 "+args[2]+",请稍候...");                     
         
        ActionEventFuture future = new ActionEventFuture()//建立一个Future来等待操作事件     
        client.sendChatMessage(Long.parseLong(args[2]), new Message(args[3]), future);
        ActionEvent event = future.waitActionEventWithoutException()//等待操作完成事件
        switch(event.getEventType()){
         
          case SUCCESS:
            SendChatMessageSuccessEvent evt = (SendChatMessageSuccessEvent) event;
View Full Code Here

Examples of net.solosky.maplefetion.client.dialog.ChatDialogProxy.sendChatMessage()

    public void sendSMS(String uri, final String msg)
    {
      try{
          Buddy buddy = this.client.getFetionStore().getBuddyByUri(uri);
          ChatDialogProxy dialog = this.client.getChatDialogProxyFactory().create(buddy);
        dialog.sendChatMessage(new Message(msg), new DefaultActionListener("发送消息[ "+msg+" ]给"+buddy.getDisplayName()));
        } catch (FetionException e) {
          println("建立对话框时出错"+e.getMessage());
        }
    }
View Full Code Here

Examples of net.solosky.maplefetion.client.dialog.ChatDialogProxy.sendChatMessage()

              proxy = this.client.getChatDialogProxyFactory().create(buddy);
            } catch (DialogException e) {
            println("建立对话失败!!");
            return;
            }
        proxy.sendChatMessage( Message.wrap(message), new ActionEventListener(){
        public void fireEevent(ActionEvent event)
         {
           if(event.getEventType()==ActionEventType.SUCCESS){
            SendChatMessageSuccessEvent evt = (SendChatMessageSuccessEvent) event;
            if(evt.isSendToMobile()){
View Full Code Here

Examples of net.solosky.maplefetion.client.dialog.ChatDialogProxy.sendChatMessage()

      relation==Relation.UNCONFIRMED) {
      if(listener!=null) listener.fireEevent(new FailureEvent(FailureType.BUDDY_RELATION_FORBIDDEN));
    }else {
        try {
          ChatDialogProxy proxy = this.proxyFactory.create(toBuddy);
          proxy.sendChatMessage(message, listener);
        } catch (DialogException e) {
          listener.fireEevent(new SystemErrorEvent(e));
        }
    }
  }
View Full Code Here

Examples of net.solosky.maplefetion.client.dialog.GroupDialog.sendChatMessage()

        if(groupuri==nullreturn;
        final Group group = this.client.getFetionStore().getGroup(groupuri);
        if(group!=null) {
          GroupDialog dialog = this.client.getDialogFactory().findGroupDialog(group);
          if(dialog!=null) {
            dialog.sendChatMessage(Message.wrap(message), new ActionEventListener() {
              public void fireEevent(ActionEvent event)
              {
                if(event.getEventType()==ActionEventType.SUCCESS){
                  println("提示:发送给群 "+group.getName()+" 的消息发送成功!");
              }else{
View Full Code Here

Examples of org.pokenet.server.backend.map.ServerMap.sendChatMessage()

                        if(m_localQueue.peek() != null) {
                                o = m_localQueue.poll();
                                m = GameServer.getServiceManager().getMovementService().
                                        getMapMatrix().getMapByGamePosition(Integer.parseInt((String) o[1]), Integer.parseInt((String) o[2]));
                                if(m != null)
                                        m.sendChatMessage((String) o[0], Language.valueOf(((String)o[3])));
                        }
                        //Send next private chat message
                        if(m_privateQueue.peek() != null) {
                                o = m_privateQueue.poll();
                                s = (IoSession) o[0];
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.