Announces
Last updated
Last updated
Announcements are used to communicate important messages to players, such as server updates, events, or general announcements. The announce system can include text, headers, dates, and optionally images to make your messages more engaging.
Announces.json
The announcements are defined in the Announces.json
file. Each announcement includes several key elements:
In the example above, each announce includes:
text: The main content of the announcement.
date: The date of the announcement, formatted as dd.mm.yyyy
.
header: A title for the announcement, used to grab the player's attention.
photo: The photo of the person who made the announcement.
To add a new announce, use the command:
Command: The command required for the announce, such as /addAnnounce
.
Permission: The authorization level required to use the command (e.g., admin
).
Text: Description of the command.
Description: Command syntax helper.
Header: The title of the announcement.
Text: The content of the announcement.
Open the Announces.json
file.
Copy an existing announcement object.
Modify the text
, date
, header
and photo
fields as needed:
After updating the Announces.json
file, ensure that the changes are displayed correctly:
Note: Announcements will be updated automatically without the need for any manual server reload
Verify the Output:
Ensure the text displays correctly without being truncated.
Check that the photo, if included, loads properly.
Confirm that the date and header are formatted correctly.
Edit the Announces.json
file to create or update announcements, or use the specified command to add a new announcement in-game.
Include text, date, header, and photo to make your announcements effective. The photo is automatically set, ensuring each announcement is visually engaging.
Test each announcement to ensure it displays correctly in-game.
Using these guidelines, you can create clear and effective announcements that keep your player community informed and engaged.