@quenty/softshutdown 9.7.0 → 9.8.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,17 @@
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
+ # [9.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@9.7.0...@quenty/softshutdown@9.8.0) (2024-09-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Unedited all changes ([60e64e3](https://github.com/Quenty/NevermoreEngine/commit/60e64e3efce17c10c4b8965871187d231b338dd4))
12
+
13
+
14
+
15
+
16
+
6
17
  # [9.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@9.6.0...@quenty/softshutdown@9.7.0) (2024-08-09)
7
18
 
8
19
  **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": "9.7.0",
3
+ "version": "9.8.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",
@@ -29,25 +29,25 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@quenty/attributeutils": "^14.4.0",
33
- "@quenty/baseobject": "^10.3.0",
34
- "@quenty/basicpane": "^13.4.0",
35
- "@quenty/bindtocloseservice": "^8.4.0",
36
- "@quenty/blend": "^12.4.0",
37
- "@quenty/clienttranslator": "^14.5.0",
38
- "@quenty/coreguienabler": "^12.4.0",
39
- "@quenty/datastore": "^13.6.0",
40
- "@quenty/loader": "^10.3.0",
41
- "@quenty/maid": "^3.2.0",
32
+ "@quenty/attributeutils": "^14.5.0",
33
+ "@quenty/baseobject": "^10.4.0",
34
+ "@quenty/basicpane": "^13.5.0",
35
+ "@quenty/bindtocloseservice": "^8.5.0",
36
+ "@quenty/blend": "^12.5.0",
37
+ "@quenty/clienttranslator": "^14.6.0",
38
+ "@quenty/coreguienabler": "^12.5.0",
39
+ "@quenty/datastore": "^13.7.0",
40
+ "@quenty/loader": "^10.4.0",
41
+ "@quenty/maid": "^3.3.0",
42
42
  "@quenty/math": "^2.7.0",
43
- "@quenty/promise": "^10.3.0",
44
- "@quenty/rx": "^13.4.0",
45
- "@quenty/servicebag": "^11.4.0",
43
+ "@quenty/promise": "^10.4.0",
44
+ "@quenty/rx": "^13.5.0",
45
+ "@quenty/servicebag": "^11.5.0",
46
46
  "@quenty/table": "^3.5.0",
47
- "@quenty/teleportserviceutils": "^9.4.0",
48
- "@quenty/uiobjectutils": "^6.3.0",
49
- "@quenty/valuebaseutils": "^13.4.0",
50
- "@quenty/valueobject": "^13.4.0"
47
+ "@quenty/teleportserviceutils": "^9.5.0",
48
+ "@quenty/uiobjectutils": "^6.4.0",
49
+ "@quenty/valuebaseutils": "^13.5.0",
50
+ "@quenty/valueobject": "^13.5.0"
51
51
  },
52
- "gitHead": "ba466bdbc05c42fb607cf5e228c16339201d21d7"
52
+ "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
53
53
  }
@@ -41,13 +41,13 @@ SoftShutdownService.ServiceName = "SoftShutdownService"
41
41
  @param serviceBag ServiceBag
42
42
  ]=]
43
43
  function SoftShutdownService:Init(serviceBag)
44
+ self._maid = Maid.new()
44
45
  self._serviceBag = assert(serviceBag, "No serviceBag")
45
46
 
46
47
  self._bindToCloseService = self._serviceBag:GetService(require("BindToCloseService"))
47
48
  self._serviceBag:GetService(require("SoftShutdownTranslator"))
48
49
 
49
50
  self._dataStore = DataStoreService:GetDataStore("IsSoftShutdownServer")
50
- self._maid = Maid.new()
51
51
 
52
52
  self:_promiseIsLobby():Then(function(isLobby)
53
53
  if isLobby then
@@ -176,4 +176,8 @@ function SoftShutdownService:_promiseRedirectAllPlayers()
176
176
  end)
177
177
  end
178
178
 
179
+ function SoftShutdownService:Destroy()
180
+ self._maid:DoCleaning()
181
+ end
182
+
179
183
  return SoftShutdownService