Skip to content

Conversation

@benrobson
Copy link
Member

Motivation

  • Provide an in-proxy private messaging system with /message//msg and /reply so players can DM each other.
  • Allow users to manage inbound messages via an ignore list and a toggle and persist those preferences across restarts.
  • Integrate messaging into the plugin lifecycle and keep a name cache for UUID↔name resolution on login via updateNameCache.
  • Re-enable sending the full direct-message contents to the command/social spy API instead of redacting them.

Description

  • Added PrivateMessageService that persists messagesDisabled, ignoreList, and nameCache to private-messages.json and maintains an in-memory lastConversation map.
  • Implemented and registered commands: message (aliases m,msg,w,whisper,tell,t), reply (r), ignore (add/remove/list), and togglemessages and wired them into ZanderVelocityMain.
  • Wired the service into ZanderVelocityMain (data directory injection and privateMessageService exposure) and updated UserOnLogin to call PrivateMessageService.updateNameCache on player login.
  • Restored direct-message contents in UserCommandSpyEvent and UserSocialSpyEvent by removing the redaction logic so the full message text is logged and sent to the spy API.

Testing

  • No automated tests were run for these changes.

Codex Task

@coderabbitai
Copy link

coderabbitai bot commented Jan 5, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants