Examples of sendGroupMessage()


Examples of chatroom.connection.ClientConnection.sendGroupMessage()

        //System.err.println(msg);
        ClientConnection connection = ChatroomClient.getClient().getConnection();
        if (chatPane.isPrivate()) {
            connection.sendPrivateMessage(getName(), ChatroomClient.getClient().getUserName(), chatPane.getRecipient(), msg);
        } else {
            connection.sendGroupMessage(getName(), ChatroomClient.getClient().getUserName(), msg);
        }
        chatPane.clearAll();
    }

    public RoomPane(String roomname, boolean isPrivateRoom, boolean isLobbyRoom) {
View Full Code Here

Examples of games.stendhal.server.core.rp.group.Group.sendGroupMessage()

      player.sendPrivateText(NotificationType.ERROR, targetPlayer + " is not a member of your group.");
      return;
    }

    // tell the members of the kick and remove the target player
    group.sendGroupMessage("Group", targetPlayer + " was kicked by " + player.getName());
    group.removeMember(targetPlayer);
  }

  /**
   * sends an error messages on invalid an actions
View Full Code Here

Examples of games.stendhal.server.core.rp.group.Group.sendGroupMessage()

      player.sendPrivateText(NotificationType.ERROR, "You are not in a group");
      return;
    }

    if (validateAction(action)) {
      group.sendGroupMessage(player.getName(), action.get(TEXT));
    }
  }

  /**
   * checks that all required parameters exist
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.