Skip to content
BenyVKPublic

About

Per-world chat plugin for Paper servers with a custom chat engine, "Name >> message" format, and an OP-only /all broadcast command.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ChatVK

A lightweight per-world chat plugin for Paper servers. ChatVK replaces the vanilla chat pipeline with its own, so messages stay inside the sender's world, use a clean Name >> message format, and no longer go through Minecraft's built-in chat engine.

Features

  • Per-world chat – players only see messages sent from the world they are in.
  • Vanilla chat bypass – the default chat event is cancelled and messages are delivered manually, avoiding the signed-chat pipeline that can cause lag or freezes.
  • Clean format – PlayerName >> message (gray name and arrow, white message).
  • /all command – lets OPs broadcast a message to every world and the console.
  • Auth plugin friendly – players who are not logged in or registered cannot chat (works with VKAuth or any auth plugin that cancels AsyncChatEvent at a lower priority).
  • Console logging – every message is logged with its world name, e.g. [world_nether] Steve >> hello.

Chat format

Steve >> Hello everyone!

Broadcasts sent with /all:

[ALL] Admin >> Server restarting in 5 minutes!

Commands

Command Description Permission
/all <message> Send a message to all players in every world chatvk.all (default: OP)

Permissions

Permission Description Default
chatvk.all Allows use of /all OP

Requirements

  • Paper 1.21 or newer (the plugin uses Paper's AsyncChatEvent and Adventure API)
  • Java 21 or newer

Spigot and Bukkit are not supported.

Installation

  1. Download the latest ChatVK-x.x.x.jar from the Releases page, or build it yourself (see below).
  2. Place the jar in your server's plugins/ folder.
  3. In server.properties, set:
    enforce-secure-profile=false
  4. Restart the server.

Building from source

git clone https://github.com/BenyVK/ChatVK.git
cd ChatVK
./gradlew build

The compiled jar will be in build/libs/.

How it works

ChatVK listens to AsyncChatEvent at HIGHEST priority with ignoreCancelled = true:

  1. If another plugin (for example an auth plugin) already cancelled the event, ChatVK does nothing, so unauthenticated players cannot chat.
  2. Otherwise, ChatVK cancels the event so vanilla chat never processes it.
  3. The message is formatted and sent on the main thread only to players in the sender's world, then logged to the console.

Notes

  • Because messages are sent manually, they are not signed chat messages. Keep enforce-secure-profile=false to avoid signature errors on clients.
  • The client still sends the chat packet to the server. ChatVK cancels it at the event level, so nothing is broadcast by the vanilla chat engine.

Contributing

Issues and pull requests are welcome.

About

Per-world chat plugin for Paper servers with a custom chat engine, "Name >> message" format, and an OP-only /all broadcast command.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages