Skip to content

AlesixDev/HyMSG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💬 HyMSG - Private Messaging Plugin

A lightweight and highly customizable private messaging plugin for Hytale servers with configurable message formats and color schemes.


📖 Why?

Communication is essential in multiplayer games. Players need a way to have private conversations without cluttering public chat. HyMSG provides:

  • Simple and intuitive commands
  • Fully customizable message formats
  • Quick reply functionality
  • Color-coded messages for better readability
  • Easy configuration without code

Whether you're running a roleplay server, a competitive PvP arena, or a creative community, HyMSG gives your players the tools they need to communicate privately and effectively!


✨ Features

💬 Private Messaging

  • /msg <player> <message> - Send a private message to any online player
  • Multiple command aliases: /m, /w, /whisper, /tell
  • Prevents messaging yourself
  • Clear error messages for offline players

↩️ Quick Reply

  • /r <message> - Instantly reply to the last player who messaged you
  • Alias: /reply
  • Bidirectional reply tracking
  • Automatic cleanup when players disconnect

🎨 Customizable Formats

  • Configure message formats with placeholders
  • Separate formats for sender and receiver
  • Console message support

🔧 Easy Configuration

  • All formats and colors in config.yml
  • Translatable system messages
  • No code changes needed

📥 Installation

1️⃣ Download the plugin

# Download HyMSG-1.0-SNAPSHOT.jar from releases

2️⃣ Install on your server

# Place the JAR in your mods folder
cp HyMSG-1.0-SNAPSHOT.jar /path/to/hytale/mods/

3️⃣ Start your server The plugin will automatically create a default config.yml in mods/HyMSG/

4️⃣ Configure your settings (optional) Edit mods/HyMSG/config.yml to customize message formats and colors


⚙️ Configuration

Message Formats

# Message format configurations
# Available placeholders: {sender}, {receiver}, {message}
senderFormat: "[Me -> {receiver}] {message}"
receiverFormat: "[{sender} -> Me] {message}"

System Messages

messages:
  prefix: "[HyMSG] "
  playerNotFound: "Player {player} not found or is offline."
  cannotMessageSelf: "You cannot send a message to yourself."
  noReplyTarget: "You don't have anyone to reply to."
  messageUsage: "Usage: /msg <player> <message>"
  replyUsage: "Usage: /r <message>"
  configReloaded: "Configuration reloaded successfully!"
  noPermission: "You don't have permission to use this command."
  defaultConfigCreated: "Default config.yml created"
  errorCreatingConfig: "Error creating config file, generating default"
  errorLoadingConfig: "Error loading configuration: {error}"
  configSaved: "Configuration saved successfully"
  errorSavingConfig: "Error saving configuration: {error}"

  # Colors for system messages
  errorColor: "red"
  successColor: "green"
  infoColor: "yellow"

🎮 Commands

Primary Commands

Command Aliases Description Usage
/msg /m, /w, /whisper, /tell Send a private message /msg Simon Hello there!
/r /reply Reply to last message /r Thanks for the help!

Command Examples

Sending a message:

/msg Player123 Hey, want to team up?
/w Player123 Meet me at spawn
/tell Player123 Check out my build!

Quick replies:

Player: /msg Player123 You Got a sword?
You: /r Yes! Want to trade?
Player: /r Sure, meet at marketplace
You: /r On my way!

🎯 Placeholder System

HyMSG supports placeholders in message formats for dynamic content:

  • {sender} - Name of the player sending the message
  • {receiver} - Name of the player receiving the message
  • {message} - The actual message content
  • {player} - Player name in error messages

Example Custom Format:

senderFormat: "📤 To {receiver}: {message}"
receiverFormat: "📥 From {sender}: {message}"

Result:

You see: 📤 To Steve: Hello!
Steve sees: 📥 From You: Hello!

🚀 Building from Source

1️⃣ Clone the repository

git clone https://github.com/alesixdev/HyMSG.git
cd HyMSG

2️⃣ Add libraries

Add HytaleServer.jar on libraries

3️⃣ Build with Gradle

./gradlew clean build

4️⃣ Ready!

# The built plugin will be at:
build/libs/HyMSG-1.0-SNAPSHOT.jar

🔧 Development

Project Structure

HyMSG/
├── src/main/
│   ├── java/dev/alesixdev/hymsg/
│   │   ├── HyMSGPlugin.java              # Main plugin entry
│   │   ├── commands/
│   │   │   ├── MsgCommand.java           # /msg command
│   │   │   └── ReplyCommand.java         # /r command
│   │   ├── config/
│   │   │   ├── ConfigManager.java        # Config loading/saving
│   │   │   └── ConfigData.java           # Config data model
│   │   └── utils/
│   │       ├── MessageFormatter.java     # Color
│   │       └── ReplyManager.java         # Reply tracking
│   └── resources/
│       ├── config.yml                     # Default configuration
│       └── manifest.json                  # Plugin manifest
├── build.gradle                           # Build configuration
└── README.md

📞 Support


📜 License

Licensed under the MIT License. Use, modify, and redistribute freely.

About

Simple plugin for sending private messages between users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages