How to Install and Use the Netty‑Powered XEChat IDEA Plugin for Real‑Time Chat and Games

This guide walks you through installing the XEChat IDEA plugin, using its instant‑messaging and game features, deploying the Netty‑based server with Maven, and exploring the source code to understand its architecture and command‑line interactions.

Liangxu Linux
Liangxu Linux
Liangxu Linux
How to Install and Use the Netty‑Powered XEChat IDEA Plugin for Real‑Time Chat and Games

Installation

Open IntelliJ IDEA, go to Preferences → Plugins → Manage Plugin Repositories… and add the repository URL http://plugins.xeblog.cn. Then search for “xechat” in the marketplace, install the plugin and restart the IDE. The XEChat panel appears in the lower‑right corner.

Basic Usage

After the IDE restarts, the XEChat panel shows a command prompt. Log in with #login YourName. The plugin supports text chat, image sending via copy‑paste, and basic instant‑messaging functionality.

Game Interaction

List the games that the plugin provides with #showGame. Currently supported games are Gomoku (五子棋) and Dou Dizhu. Start a game by specifying its index, for example #play 0 launches the Gomoku board directly inside the panel.

Server Deployment

The source code is hosted at https://github.com/anlingyi/xechat-idea. To run a private XEChat server locally:

Clone the repository.

Build the common module first:

cd xechat-commons
mvn install

Package the server module:

cd xechat-server
mvn package

Run the generated JAR, specifying a listening port (e.g., 1024):

java -jar target/xechat-server-<em>version</em>.jar -p 1024

In the XEChat panel connect to the locally running server:

#login -h 127.0.0.1 -p 1024

Source Code Exploration

The project is a concrete example of using Netty in a Java SE context. Begin debugging from the main method of the server module, then follow the Netty pipeline handlers to understand how inbound messages are decoded, processed, and routed to the appropriate chat or game logic.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavamavenNettyIntelliJ IDEAIDE pluginChat Plugin
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.