@quenty/softshutdown 10.12.1 → 10.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [10.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@10.12.1...@quenty/softshutdown@10.13.0) (2026-11-06)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **softshutdown:** reserve the shutdown server with ReservedServerId ([1af6b7f](https://github.com/Quenty/NevermoreEngine/commit/1af6b7fe14d64531cef9396d925eaddac8b97d8d))
|
|
11
|
+
|
|
6
12
|
## [10.12.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@10.12.0...@quenty/softshutdown@10.12.1) (2026-10-24)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @quenty/softshutdown
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/softshutdown",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.13.0",
|
|
4
4
|
"description": "This service lets you shut down servers without losing a bunch of players. When game.OnClose is called, the script teleports everyone in the server into a reserved server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"@quenty/valuebaseutils": "13.38.1",
|
|
53
53
|
"@quenty/valueobject": "13.39.1"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "2d4d5cbd9339e7be7e36d30aa91f7146225cb500"
|
|
56
56
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
local require = require(script.Parent.loader).load(script)
|
|
19
19
|
|
|
20
20
|
local DataStoreService = game:GetService("DataStoreService")
|
|
21
|
+
local HttpService = game:GetService("HttpService")
|
|
21
22
|
local Players = game:GetService("Players")
|
|
22
23
|
local RunService = game:GetService("RunService")
|
|
23
24
|
local Workspace = game:GetService("Workspace")
|
|
@@ -93,8 +94,10 @@ function SoftShutdownService._promiseTeleportPlayersToLobby(self: SoftShutdownSe
|
|
|
93
94
|
|
|
94
95
|
Workspace:SetAttribute(SoftShutdownConstants.IS_SOFT_SHUTDOWN_UPDATING_ATTRIBUTE, true)
|
|
95
96
|
|
|
97
|
+
local reservedServerId = HttpService:GenerateGUID(false)
|
|
98
|
+
|
|
96
99
|
local initialTeleportOptions = Instance.new("TeleportOptions")
|
|
97
|
-
initialTeleportOptions.
|
|
100
|
+
initialTeleportOptions.ReservedServerId = reservedServerId
|
|
98
101
|
initialTeleportOptions:SetTeleportData({
|
|
99
102
|
isSoftShutdownReserveServer = true,
|
|
100
103
|
})
|
|
@@ -117,8 +120,7 @@ function SoftShutdownService._promiseTeleportPlayersToLobby(self: SoftShutdownSe
|
|
|
117
120
|
|
|
118
121
|
-- Construct new teleport options
|
|
119
122
|
local newTeleportOptions = Instance.new("TeleportOptions")
|
|
120
|
-
newTeleportOptions.
|
|
121
|
-
newTeleportOptions.ReservedServerAccessCode = teleportResult.ReservedServerAccessCode
|
|
123
|
+
newTeleportOptions.ReservedServerId = reservedServerId
|
|
122
124
|
newTeleportOptions:SetTeleportData({
|
|
123
125
|
isSoftShutdownReserveServer = true,
|
|
124
126
|
})
|