π°News.json
The News.json file is used to configure the news section displayed in the loading screen.
π Configuration Options
1. Title
Key:
Title
Type: String
Default:
"News"
Description: Sets the title of the news section.
Example:
"Title": "News"
2. Subtitle
Key:
Subtitle
Type: String
Default:
"Here you can find the latest news about the city and its inhabitants"
Description: Sets the subtitle displayed below the title.
Example:
"Subtitle": "Stay updated with the latest server news!"
3. NewsTitleColor
Key:
NewsTitleColor
Type: String (RGBA format)
Default:
"rgba(194, 0, 255, 1)"
Description: Specifies the color of news titles.
Example:
"NewsTitleColor": "rgba(255, 0, 0, 1)"
4. NewsAuthorColor
Key:
NewsAuthorColor
Type: String (RGBA format)
Default:
"rgba(194, 0, 255, 1)"
Description: Specifies the color of the authorβs name.
Example:
"NewsAuthorColor": "rgba(0, 255, 0, 1)"
5. News
Key:
News
Type: Array of Objects
Description: Contains the details of each news article.
π° News Article Properties
Title:
Key:
title
Type: String
Description: The headline of the news article.
Example:
"title": "New Christmas Event"
Text:
Key:
text
Type: String
Description: The body of the news article.
Example:
"text": "Join us for a festive Christmas event in the city!"
Image:
Key:
img
Type: String (URL)
Description: URL to an image associated with the article.
Example:
"img": "https://example.com/christmas-event.jpg"
Date:
Key:
date
Type: String (YYYY-MM-DD format)
Description: The date of the news article.
Example:
"date": "2023-12-25"
Time:
Key:
time
Type: String (24-hour format)
Description: The time of the news article.
Example:
"time": "18:00"
Author:
Key:
author
Type: String
Description: The name of the articleβs author.
Example:
"author": "Admin"
π Example Configuration
Hereβs an example of a complete News.json
file:
{
"Title": "News",
"Subtitle": "Here you can find the latest news about the city and its inhabitants",
"NewsTitleColor": "rgba(194, 0, 255, 1)",
"NewsAuthorColor": "rgba(194, 0, 255, 1)",
"News": [
{
"title": "New Christmas Event",
"text": "We are organizing a Christmas event in the city. Don't miss it!",
"img": "https://example.com/christmas-event.jpg",
"date": "2023-12-25",
"time": "18:00",
"author": "Admin"
},
{
"title": "Halloween Event",
"text": "Join us for a spooky Halloween celebration!",
"date": "2023-10-31",
"time": "20:00",
"author": "Event Organizer"
}
]
}
β οΈ Notes
Ensure image URLs are accessible and properly formatted.
The
date
andtime
fields should follow standard formats for consistency.
Keep your players informed by regularly updating the news section!
Last updated