@quenty/softshutdown 3.5.1 → 3.6.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 +8 -0
- package/package.json +3 -3
- package/src/Server/SoftShutdownService.lua +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
# [3.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@3.5.1...@quenty/softshutdown@3.6.0) (2022-11-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/softshutdown
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.5.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@3.5.0...@quenty/softshutdown@3.5.1) (2022-11-04)
|
|
7
15
|
|
|
8
16
|
**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": "3.
|
|
3
|
+
"version": "3.6.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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@quenty/bindtocloseservice": "^2.1.1",
|
|
36
36
|
"@quenty/blend": "^6.3.1",
|
|
37
37
|
"@quenty/clienttranslator": "^8.3.1",
|
|
38
|
-
"@quenty/datastore": "^7.
|
|
38
|
+
"@quenty/datastore": "^7.3.0",
|
|
39
39
|
"@quenty/loader": "^6.0.1",
|
|
40
40
|
"@quenty/maid": "^2.4.0",
|
|
41
41
|
"@quenty/math": "^2.2.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"@quenty/uiobjectutils": "^3.0.0",
|
|
48
48
|
"@quenty/valuebaseutils": "^7.1.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "3432599d8ed7bf7f0436d7cd5495925543450117"
|
|
51
51
|
}
|
|
@@ -31,6 +31,16 @@ local BindToCloseService = require("BindToCloseService")
|
|
|
31
31
|
local SoftShutdownService = {}
|
|
32
32
|
SoftShutdownService.ServiceName = "SoftShutdownService"
|
|
33
33
|
|
|
34
|
+
--[=[
|
|
35
|
+
Initialize the service. Should be done via [ServiceBag].
|
|
36
|
+
|
|
37
|
+
:::warning
|
|
38
|
+
Initializing this service effectively initializes side effects, which is, to initialize
|
|
39
|
+
the soft shutdown behavior.
|
|
40
|
+
:::
|
|
41
|
+
|
|
42
|
+
@param serviceBag ServiceBag
|
|
43
|
+
]=]
|
|
34
44
|
function SoftShutdownService:Init(serviceBag)
|
|
35
45
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
36
46
|
|
|
@@ -166,4 +176,4 @@ function SoftShutdownService:_promiseRedirectAllPlayers()
|
|
|
166
176
|
end)
|
|
167
177
|
end
|
|
168
178
|
|
|
169
|
-
return SoftShutdownService
|
|
179
|
+
return SoftShutdownService
|