Ejemplo n.º 1
0
  public void kick(String reason) {
    try {
      Packet.writePacket(netManager.getOutputStream(), new Packet255Disconnect(reason));
    } catch (IOException ex) {
    }

    users.remove(this);
    netManager.user = null;
    String allMsg =
        new StringBuilder(username).append(" was kicked. (").append(reason).append(')').toString();
    netManager.shutdown(allMsg);
    globalMessage(allMsg);
  }
Ejemplo n.º 2
0
 public void sendMessage(String message) {
   netManager.queuePacket(new Packet3Chat(message));
 }