📰News

Updating the News Module

The news module allows server owners to customize their server's announcements by editing the normalNews array in the settings document. Add your own messages to this array to display them in rotation to your players. For example, to add a new message:

"normalNews": [
  "You can submit ideas on our Discord!",
  "We don't like Fortnite",
  "Fedustria is made up of the name Fedox and Austria",
  "Check out our new events this weekend!"
]

To apply changes to the news module without needing to restart the server, use the /news reload command. This will fetch the latest configuration from the database, ensuring your new messages are displayed to players immediately.

Settings

Find document in MongoDB:

db.getCollection('settings').find({ "name" : "news" })

Default settings:

{
    "_id" : ObjectId("65d1a8adfd10c50ff0961a1c"),
    "name" : "news",
    "config" : {
        "prefix" : "§7•§8● %col1%§lBroad%col2%§lcast §8»§7 ",
        "normalNews" : [ 
            "You can submit ideas on our Discord!", 
            "We don't like Fortnite", 
            "Fedustria is made up of the name Fedox and Austria"
        ]
    }
}

Last updated