messages.yml
The messages.yml file gives you full control over every string of text your players see. From simple chat notifications to action bar alerts, everything is fully customizable.
Color Code Support
Section titled “Color Code Support”Easter Eggs supports both modern HEX color codes and traditional legacy color formatting, allowing you to create visually appealing messages for your players.
- HEX Colors: Use the
<#RRGGBB>format for custom RGB colors (e.g.,<#FF5555>Your Text Here). - Legacy Color Codes: Standard Minecraft color codes using the
&symbol are fully supported (e.g.,&afor green,&lfor bold,&nfor underlined).
Common Placeholders
Section titled “Common Placeholders”Throughout the messages file, you can use various placeholders to inject dynamic data into your text.
%prefix%: Uses the primary plugin prefix.%player%: Displays the name of the player interacting with the egg.%egg_id%: Displays the specific ID of the Easter Egg.
Some specific messages, like progress indicators, also use numbered placeholders like {0} for your found eggs and {1} for total eggs.
Configuration Examples
Section titled “Configuration Examples”Here is how you can implement these color codes and placeholders in your file:
# Example using legacy color codes and numbered placeholdersnew-egg-found: "&a&lYou found an Easter Egg! &e&l(&a&l{0}&e&l/&a&l{1}&a&l)"
# Example using HEX colors and standard placeholdersegg-already-found: "<#FF5555>You have already found the %egg_id% Easter Egg, %player%!"Applying Changes
Section titled “Applying Changes”One of the best features of the message system is that you don’t need to restart your server to see changes. Simply modify the file, save it, and use the reload command in-game or from the console to see your updates instantly:
/eastereggs reload