Announces

Announces Overview
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.
1. Structure of Announces in Announces.json
Announces.json
The announcements are defined in the Announces.json
file. Each announcement includes several key elements:
[
{
"text": "Lorem ipsum dolor sit amet consectetur. Penatibus ullamcorper dui suscipit fringilla dis magna. Et viverra tellus vitae id congue tellus lorem. Pharetra feugiat nunc facilisi vitae pellentesque integer. Hendrerit orci rutrum odio.",
"date": "05.09.2024",
"header": "Welcome to the server!",
"photo": ""
}
]
Fields Explanation
text
String
The main content of the announcement
date
String
Date when the announcement was created (format: DD.MM.YYYY)
header
String
Title/header of the announcement
photo
String
Optional image URL for the announcement
Note: If you don't want to include an image, leave the photo
field as an empty string ""
.
2. Adding New Announces
There are two ways to add new announcements to your server:
Method 1: Using In-Game Commands
To add a new announce using the in-game command:
/addAnnounce Header Text
Example:
/addAnnounce "Weekend Event" "Join us for an exciting new event happening this weekend. There will be exclusive rewards!"
Method 2: Manual Addition via JSON File
Open the
Announces.json
fileCopy an existing announcement object
Modify the
text
,date
,header
andphoto
fields as needed:
{
"text": "Join us for an exciting new event happening this weekend. There will be exclusive rewards!",
"date": "10.10.2024",
"header": "Weekend Event Announcement!",
"photo": "https://i.imgur.com/3taJXrA.jpeg"
}
3. Command Customization
You can customize the announce command in the Customize.lua
file:
Command = {
Permission = 'admin',
Command = 'addAnnounce',
Text = 'New Announce',
Description = {
{name='Header', help='Header'},
{name='Text', help='Text'},
}
}
Command Configuration Options
Permission
Authorization level required to use the command (e.g., admin
, moderator
)
Command
The actual command name (default: addAnnounce
)
Text
Description text for the command
Description
Command syntax helper with parameter descriptions
4. Adding Multiple Announces
You can add multiple announcements by creating additional objects in the JSON array:
[
{
"text": "First announcement content here...",
"date": "05.09.2024",
"header": "Server Update",
"photo": "https://example.com/image1.jpg"
},
{
"text": "Second announcement content here...",
"date": "06.09.2024",
"header": "New Event",
"photo": ""
},
{
"text": "Important maintenance scheduled for tonight. Server will be offline from 2 AM to 4 AM EST.",
"date": "07.09.2024",
"header": "Maintenance Notice",
"photo": ""
}
]
Pro Tip: You can update announcements instantly using in-game commands or by editing the Announces.json
file directly!
Related Pages
Custom PagesLast updated
Was this helpful?