plugins/DuneChat
Repository files (latest commit first)
Filename Latest commit message Latest commit date
unimatrixgit a5813cc270
Some checks failed
DuneChat Build / dunechat (push) Has been cancelled
DuneRealms Plugin CI / plugins (push) Has been cancelled
Read chat authority through retained JARVIS without replacing GUI
2026-12-02 13:33:22 +01:00
..
src Read chat authority through retained JARVIS without replacing GUI 2026-12-02 13:33:22 +01:00
build.gradle.kts Integrate DuneChat with verified private channel membership 2026-12-02 13:33:22 +01:00
README.md Integrate DuneChat with verified private channel membership 2026-12-02 13:33:22 +01:00
settings.gradle.kts Integrate DuneChat with verified private channel membership 2026-12-02 13:33:22 +01:00

DuneChat

Chat prefixes and private channels. Built on canonical main 5d727d7. Not pushed. Not tested in game.

What players see

Public chat: [STAFF]/[VIP] [Race] [CLAN TAG] [Company] Name: message. Order is prefix-order in config.yml. Race colour follows the house colour used by the nameplates.

Command Does
/cc <msg> (/clanchat) one message to your clan. /cc alone toggles clan chat mode
/coc <msg> (/companychat) same for your company
/sc <msg> (/staffchat) staff only, permission dunechat.staff
/g (/gc) back to public chat
/chatspy staff with dunechat.spy also see clan and company chat

You can be in one clan and one company at the same time; each has its own private channel. Private chat is logged to the console (log-private-chat).

Where the data comes from

The same central briefing the nameplates use (briefing.identity: staff, vip, clans, companies), pushed in by a 5-line hook in DuneRealmsGUI (DuneGUI.pushChatIdentity, reflection, no hard dependency). Group membership keys on the central id when the briefing carries one, otherwise on the name, so please confirm the briefing includes ids.

Safety

  • Names and tags are stripped of & § % < > and control characters before they reach a prefix; the message itself is never colour-parsed.
  • Never un-cancels chat: a mute or filter from another plugin still wins.
  • Leaving a clan or company while in its channel drops you back to public chat.

Install

  1. Build: gradle -p DuneChat build -> build/libs/DuneChat.jar.
  2. Apply the DuneRealmsGUI change (DuneGUI.java, plugin.yml softdepend), rebuild DuneRealmsGUI.
  3. Grant dunechat.staff / dunechat.spy through LuckPerms.

Verified / not verified

CI: DuneChat compiles; 7 unit tests (parsing, prefix order, injection, group isolation, staff rules). The DuneRealmsGUI edit was not compiled in CI (that module needs another module missing from the cut-down CI tree; the errors seen were unrelated). Not tested: real chat events, other chat plugins (LuckPerms prefixes, DuneEss, DuneMenus chat prompts), Bedrock clients.

Limits

  • Per server only: planets are separate servers, so clan/company/staff chat does not cross servers. A proxy relay would be a separate piece.
  • No mute, filter, cooldown or channel history.