Build an Instant Chat & Game Plugin for IntelliJ IDEA with Netty

This guide walks you through installing, using, and deploying a Netty‑based instant messaging and game plugin for IntelliJ IDEA, covering setup steps, chat commands, game play, server deployment with Maven, and how to explore its source code for learning.

macrozheng
macrozheng
macrozheng
Build an Instant Chat & Game Plugin for IntelliJ IDEA with Netty

Installation Experience

Open IntelliJ IDEA and navigate to

Preference > Plugins > Settings > Manage Plugin Repositories...

to add the XEChat‑Idea plugin repository (http://plugins.xeblog.cn). Search for "xechat" and install the plugin, then restart IDEA and locate the XEChat panel at the bottom right.

Feature Introduction

After the first launch, the plugin shows available commands. Log in with #login 沉默王二. You can then chat in real time and even send images via copy‑paste, though latency may be noticeable.

Start Game

Enter #showGame to list supported games (currently Gomoku and Dou Dizhu). Use #play 0 to launch the Gomoku board. You can play directly from the XEChat panel.

Deploy Server

To run your own server, clone the repository from GitHub, then execute the following Maven commands:

In the xechat-commons module run mvn install to build shared components.

In the xechat-server module run mvn package to create the jar.

Start the server with java -jar target/xechat-server-xxx.jar -p 1024. Back in IntelliJ IDEA, log in to the local server using #login -h 127.0.0.1 -p 1024.

Study Source Code

The XEChat project is a good example for learning Java SE and Netty. You can start debugging from the main method to explore the well‑structured Netty implementation.

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.

JavamavenNettyIntelliJChat
macrozheng
Written by

macrozheng

Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.

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.