Introducing Restart Notifications
Key Takeaways
Restart Notifications are now live for all delayed server restarts. This helps you avoid player disruption by letting you save progress or teleport players to updated servers before scheduled closures.
Find it in the Creator Hub under the Server Management page or via the Open Cloud API.
Hello Creators!
Today, we’re launching Restart Notifications on game servers! Whenever you schedule a delayed server restart, whether from the Server Management page or the Open Cloud API, all of the game servers that are scheduled to close will immediately fire the game.ServerRestartScheduled event.
Create Seamless Restarts for Your Players
You can use Restart Notifications to avoid player disruption from restarts. First, attach a callback to the event in your scripts to notify players of the impending server restart. Before the server closes, you can prompt players to save their progress, teleport them to new servers, or run any other custom logic.
The ServerRestartScheduled event contains the following arguments:
Argument
Type
Description
RestartTime
DateTime
The earliest time the external shutdown is scheduled to occur. For updates involving many servers, the actual restart time may be slightly later than this time.
Source
Enum.CloseReason
For restarts that you initiate, this will always be DeveloperUpdate.
Attributes
Dictionary
Flexible table to indicate the purpose of the restart. You might use this to indicate restart reason, urgency, a user-facing message, etc. The table will be empty if no attributes are provided.
We’ll send you notifications for all delayed server restarts that you initiate. Delivery is best effort and realtime, typically within 1-2 seconds with 99.9% success rate.
In Creator Hub, when confirming a server restart, you can attach a custom JSON payload to the restart that will populate the attributes field in the event.
image11999×1200 225 KB
How to Use Restart Notifications
• To get started,…