Create a complete, standalone, production-ready Minecraft Paper plugin called WaffleMsg for WAFFLE SMP.
CORE INFORMATION
- Plugin name: "WaffleMsg"
- Server: "WAFFLE SMP"
- Platform: Paper 1.21.11
- Java: Java 21
- Build system: Maven
- Final JAR: "WaffleMsg-1.21.11.jar"
- Vault is NOT required
- The plugin must be completely standalone.
- Use modern Paper 1.21.11 APIs.
- Do not use deprecated APIs when a modern alternative exists.
---
COMMANDS
The plugin must have ONLY these commands:
"/msg <player> <message>"
Sends a private message to another online player.
Example:
/msg Steve hey bro
"/msg toggle"
Toggles whether the player can receive private messages.
Example:
/msg toggle
Do NOT add any other commands.
NO:
- "/tell"
- "/w"
- "/whisper"
- "/reply"
- "/r"
- "/ignore"
- "/spy"
- "/socialspy"
- "/m"
- "/message"
- "/mail"
- "/msg reload"
- "/msg help"
Only "/msg" and "/msg toggle".
---
WAFFLE SMP / WAFFLESHOP DESIGN
The entire plugin must have a premium WAFFLE SMP style.
IMPORTANT
The visual design of WaffleMsg must match the WaffleShop plugin's visual design.
WaffleMsg should look like it was made as part of the same WAFFLE SMP plugin collection as WaffleShop.
Do NOT invent a completely different color palette.
If the WaffleShop source code, configuration, or project is available to inspect, find the exact colors and formatting used by WaffleShop and reuse them.
Reuse:
- Exact WaffleShop primary colors
- Exact secondary colors
- Exact highlight colors
- Exact normal text colors
- Exact separator colors
- Exact MiniMessage/hex colors
- Similar bold/normal formatting
- Similar text hierarchy
- Similar visual spacing
- Similar premium appearance
If WaffleShop uses gradients, use the same style of gradients.
If WaffleShop uses specific hex colors, use those exact hex colors.
If WaffleShop has specific colors for item names, prices, buttons, categories, or important information, reuse those colors appropriately in WaffleMsg.
DO NOT
- Use rainbow colors
- Use random colors
- Use cyan
- Use purple
- Use bright blue
- Create a completely different visual theme
- Replace the WaffleShop colors with generic waffle colors
The final result should look like:
WaffleShop → WaffleMsg
as if both plugins were designed together.
---
PRIVATE MESSAGE FORMAT
The message layout must remain:
🍴 WAFFLE » You → Steve » hello
or:
🍴 WAFFLE » XChippooX → You » hello
But the colors must match WaffleShop.
Do NOT blindly use the old color values below if WaffleShop uses different colors.
The WaffleShop colors take priority.
---
EXACT SENDER EXAMPLE
If XChippooX sends:
/msg Steve yo bro
XChippooX should receive:
🍴 WAFFLE » You → Steve » yo bro
The structure must be:
[WAFFLE PREFIX] » You → [RECEIVER] » [MESSAGE]
Styling
- "🍴 WAFFLE" → use WaffleShop's exact branding color/style.
- First "»" → use WaffleShop's exact separator color/style.
- "You" → use WaffleShop's normal/important text style.
- "→" → use WaffleShop's separator color/style.
- "Steve" → use WaffleShop's highlight/player/item-name color.
- Second "»" → use WaffleShop's separator color/style.
- "yo bro" → use WaffleShop's normal readable text color.
The message must be easy to read.
---
EXACT RECEIVER EXAMPLE
If XChippooX sends:
/msg Steve yo bro
Steve should receive:
🍴 WAFFLE » XChippooX → You » yo bro
The structure must be:
[WAFFLE PREFIX] » [SENDER] → You » [MESSAGE]
Styling
- "🍴 WAFFLE" → WaffleShop branding style.
- First "»" → WaffleShop separator style.
- "XChippooX" → WaffleShop highlight/player-name style.
- "→" → WaffleShop separator style.
- "You" → WaffleShop important-text style.
- Second "»" → WaffleShop separator style.
- "yo bro" → WaffleShop normal-text style.
---
SECOND EXACT EXAMPLE
If Steve sends:
/msg XChippooX thanks for the help!
Steve should see:
🍴 WAFFLE » You → XChippooX » thanks for the help!
XChippooX should see:
🍴 WAFFLE » Steve → You » thanks for the help!
Again, the colors and formatting must match WaffleShop.
---
COLOR IMPLEMENTATION
If WaffleShop uses MiniMessage/hex colors, use the same system.
For example, if WaffleShop has something like:
<#HEXCODE>
use the same format.
If it uses gradients, use the same gradient style.
If it uses legacy "&" colors, maintain compatibility where appropriate.
Do not hard-code a new unrelated palette.
Make the WaffleMsg colors configurable in "config.yml", while using the WaffleShop colors as the default values.
---
TOGGLE SYSTEM
"/msg toggle" must permanently toggle private-message receiving for the player.
Store the setting by UUID, not username.
The setting must survive:
- Server restart
- Player logout
- Player relog
- Plugin restart
Default state for a new player:
Enabled
---
ENABLED MESSAGE
When private messages are enabled:
🍴 WAFFLE » ✔ Private messages enabled
The exact colors must match the WaffleShop style.
Use:
- WaffleShop branding color for "🍴 WAFFLE"
- WaffleShop separator color for "»"
- WaffleShop success/green color for "✔"
- WaffleShop normal text color for "Private messages"
- WaffleShop success color for "enabled"
---
DISABLED MESSAGE
When private messages are disabled:
🍴 WAFFLE » ✖ Private messages disabled
Use the same WaffleShop style, with its appropriate error/red color.
---
BLOCKED MESSAGE
If I try to message somebody who has "/msg toggle" disabled:
🍴 WAFFLE » That player has private messages disabled.
The styling must match WaffleShop.
Do NOT send the original message to the target.
---
PLAYER NOT FOUND
If the player doesn't exist or is offline:
🍴 WAFFLE » Player not found or is offline.
Use the WaffleShop error styling.
---
SELF MESSAGE
If the player tries:
/msg XChippooX hello
while being XChippooX:
🍴 WAFFLE » You cannot message yourself.
Use the WaffleShop error styling.
---
USAGE MESSAGE
If "/msg" is used incorrectly:
🍴 WAFFLE » Usage: /msg <player> <message>
Use the WaffleShop formatting and highlight "/msg", "<player>", and "<message>" using the same style WaffleShop uses for important values.
---
EMPTY MESSAGE
Do not allow:
/msg Steve
or:
/msg Steve
Show the usage message instead.
---
MESSAGE LENGTH
Set a safe maximum message length of 256 characters.
If the message is longer than 256 characters, reject it with:
🍴 WAFFLE » Your message is too long. Maximum: 256 characters.
Use WaffleShop's error styling.
---
TAB COMPLETION
Implement proper tab completion.
When typing:
/msg
show currently online players.
Also show:
toggle
When typing:
/msg S
show matching online players.
Do not suggest offline players.
Do not suggest unnecessary commands.
---
PERMISSIONS
Create:
"wafflemsg.use"
Permission to use:
/msg <player> <message>
Default:
"true"
"wafflemsg.toggle"
Permission to use:
/msg toggle
Default:
"true"
If a player doesn't have permission:
🍴 WAFFLE » You don't have permission to use this.
Use WaffleShop's error styling.
---
OPTIONAL MESSAGE SOUND
When somebody receives a private message, optionally play a subtle Minecraft sound.
Default:
ENTITY_EXPERIENCE_ORB_PICKUP
Volume:
0.5
Pitch:
1.2
Make this configurable in "config.yml".
Example:
sound: enabled: true type: ENTITY_EXPERIENCE_ORB_PICKUP volume: 0.5 pitch: 1.2
If the sound is disabled, no sound should play.
---
CONFIGURATION
Create a clean "config.yml".
All message text must be configurable.
The default messages must use the WaffleShop-matching colors.
Example structure:
messages: sender: "<WaffleShop-style formatting>[WAFFLE PREFIX] » You → {receiver} » {message}"
receiver: "<WaffleShop-style formatting>[WAFFLE PREFIX] » {sender} → You » {message}"
toggle-enabled: "<WaffleShop-style formatting>[WAFFLE PREFIX] » ✔ Private messages enabled"
toggle-disabled: "<WaffleShop-style formatting>[WAFFLE PREFIX] » ✖ Private messages disabled"
disabled-target: "<WaffleShop-style formatting>[WAFFLE PREFIX] » That player has private messages disabled."
player-not-found: "<WaffleShop-style formatting>[WAFFLE PREFIX] » Player not found or is offline."
self-message: "<WaffleShop-style formatting>[WAFFLE PREFIX] » You cannot message yourself."
usage: "<WaffleShop-style formatting>[WAFFLE PREFIX] » Usage: /msg <player> <message>"
too-long: "<WaffleShop-style formatting>[WAFFLE PREFIX] » Your message is too long. Maximum: 256 characters."
no-permission: "<WaffleShop-style formatting>[WAFFLE PREFIX] » You don't have permission to use this."
sound: enabled: true type: ENTITY_EXPERIENCE_ORB_PICKUP volume: 0.5 pitch: 1.2
Replace the placeholder WaffleShop-style formatting with the actual WaffleShop colors.
---
MESSAGE PLACEHOLDERS
Support these placeholders:
Sender message
{receiver} {message}
Receiver message
{sender} {message}
Do not expose raw placeholder text to players if something goes wrong.
---
SECURITY / EXPLOIT PROTECTION
Make the plugin safe and reliable.
Prevent:
- Null player errors
- Invalid targets
- Self messaging
- Empty messages
- Messages over 256 characters
- Console errors from invalid input
- Offline target crashes
- Malformed configuration crashes
- Invalid sound names crashing the plugin
If an invalid sound is configured, disable the sound gracefully and log a clear warning instead of crashing the plugin.
---
DATA STORAGE
Store disabled/enabled PM states persistently.
Use:
data.yml
Example:
players:
UUID-HERE: messages-enabled: false
Use UUIDs.
Do not use usernames as permanent identifiers.
Save changes safely.
---
CHAT COMPATIBILITY
The plugin must work correctly alongside:
- EssentialsX
- LuckPerms
- TAB
- PlaceholderAPI
Do NOT require any of them.
The "/msg" messages must be sent directly to the player and should not depend on the server's chat format.
---
COMMAND REGISTRATION
Register only:
/msg
"/msg toggle" must be handled as a subcommand.
Do not register separate aliases such as:
- "/tell"
- "/w"
- "/whisper"
- "/message"
- "/m"
The plugin's "plugin.yml" must be correct for Paper 1.21.11.
---
CODE QUALITY
Use clean Java architecture.
Suggested structure:
src/main/java/ └── me/wafflesmp/wafflemsg/ ├── WaffleMsg.java ├── command/ │ └── MsgCommand.java ├── data/ │ └── PlayerSettings.java └── util/ └── MessageUtil.java
You may change the structure if you have a better professional architecture.
Use:
- Java 21
- Maven
- Paper API 1.21.11
- Adventure Components
- MiniMessage
- No unnecessary dependencies
---
MAVEN
Create a complete Maven project.
It must include:
pom.xml src/main/java/ src/main/resources/ plugin.yml config.yml
Use the correct Paper repository and Paper 1.21.11 dependency.
Set Java release to 21.
The project must compile with:
mvn clean package
The final JAR must be:
target/WaffleMsg-1.21.11.jar
---
PLUGIN STARTUP
On startup, display:
[WaffleMsg] WaffleMsg enabled! WAFFLE SMP private messaging is ready.
On shutdown:
[WaffleMsg] WaffleMsg disabled.
Do not spam the console.
---
FINAL TESTING
Before giving me the final project/JAR, verify all of these:
- Plugin compiles successfully.
- Plugin loads successfully on Paper 1.21.11.
- "/msg Steve hello" works.
- Sender receives the correct sender format.
- Receiver receives the correct receiver format.
- "/msg toggle" works.
- Toggle state persists after restart.
- Disabled players cannot receive messages.
- Offline players are handled safely.
- Self messaging is blocked.
- Empty messages are blocked.
- Messages over 256 characters are blocked.
- Tab completion works.
- Permissions work.
- Sound works.
- Invalid sound configuration does not crash the plugin.
- WaffleMsg does not require Vault.
- WaffleMsg does not interfere with EssentialsX, LuckPerms, TAB, or PlaceholderAPI.
- The final message colors match the WaffleShop design.
- Sender and receiver messages look like they belong to the same plugin ecosystem as WaffleShop.
---
IMPORTANT REQUIREMENTS
The final result MUST be a complete working plugin, not pseudocode.
Do not give me incomplete classes.
Do not leave TODOs.
Do not tell me to implement missing sections.
Do not give me only snippets.
Generate every required file.
Make sure imports are correct.
Make sure package names match.
Make sure "plugin.yml" matches the main class.
Make sure the Maven configuration is correct.
Make sure the plugin loads successfully on Paper 1.21.11.
Make sure "/msg" works.
Make sure "/msg toggle" works.
Make sure the toggle persists after restarting the server.
Make sure sender and receiver receive the exact layouts specified above.
Make sure the WaffleShop colors and styling are reused, rather than inventing a new design.
Make sure there are no compilation errors.
Finally, compile/test the project and provide the finished:
WaffleMsg-1.21.11.jar
along with the complete source project.