@minecraft/server-admin 1.0.0-beta.1.26.30-preview.32 → 1.0.0-beta.1.26.40-preview.23

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.
Files changed (2) hide show
  1. package/index.d.ts +35 -0
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -56,6 +56,8 @@ export class AllowList {
56
56
  * @remarks
57
57
  * Adds a player to the server's allow list.
58
58
  *
59
+ * This function can't be called in restricted-execution mode.
60
+ *
59
61
  * @param player
60
62
  * Player or player name that should be added to the allow
61
63
  * list.
@@ -66,6 +68,14 @@ export class AllowList {
66
68
  * {@link minecraftserver.InvalidEntityError}
67
69
  */
68
70
  add(player: minecraftserver.Player | string): void;
71
+ /**
72
+ * @remarks
73
+ * Clears the allow list, removing all entries.
74
+ *
75
+ * This function can't be called in restricted-execution mode.
76
+ *
77
+ */
78
+ clear(): void;
69
79
  /**
70
80
  * @remarks
71
81
  * Returns if the player is in the server's allow list.
@@ -81,6 +91,8 @@ export class AllowList {
81
91
  * @remarks
82
92
  * Reloads the server's allow list from disk.
83
93
  *
94
+ * This function can't be called in restricted-execution mode.
95
+ *
84
96
  * @throws This function can throw errors.
85
97
  *
86
98
  * {@link AllowListFileReloadError}
@@ -90,6 +102,8 @@ export class AllowList {
90
102
  * @remarks
91
103
  * Removes a player from the server's allow list.
92
104
  *
105
+ * This function can't be called in restricted-execution mode.
106
+ *
93
107
  * @param player
94
108
  * Player or player name that should be removed from the allow
95
109
  * list.
@@ -120,6 +134,13 @@ export class AsyncPlayerJoinBeforeEvent {
120
134
  *
121
135
  */
122
136
  readonly persistentId: string;
137
+ /**
138
+ * @remarks
139
+ * The split screen slot of the joining player or undefined if
140
+ * the player is not in a split screen session.
141
+ *
142
+ */
143
+ readonly splitScreenSlot?: minecraftserver.PlayerSplitScreenSlot;
123
144
  /**
124
145
  * @remarks
125
146
  * Call this to explicitly allow the player to join the server.
@@ -204,6 +225,8 @@ export class DedicatedServerUtils {
204
225
  * @remarks
205
226
  * Reloads the cdn configuration from disk.
206
227
  *
228
+ * This function can't be called in restricted-execution mode.
229
+ *
207
230
  * @throws This function can throw errors.
208
231
  *
209
232
  * {@link minecraftcommon.EngineError}
@@ -213,6 +236,8 @@ export class DedicatedServerUtils {
213
236
  * @remarks
214
237
  * Reloads the permissions for the server from disk.
215
238
  *
239
+ * This function can't be called in restricted-execution mode.
240
+ *
216
241
  * @throws This function can throw errors.
217
242
  *
218
243
  * {@link minecraftcommon.EngineError}
@@ -222,6 +247,8 @@ export class DedicatedServerUtils {
222
247
  * @remarks
223
248
  * Reloads the script configuration for the server from disk.
224
249
  *
250
+ * This function can't be called in restricted-execution mode.
251
+ *
225
252
  * @throws This function can throw errors.
226
253
  *
227
254
  * {@link minecraftcommon.EngineError}
@@ -231,6 +258,8 @@ export class DedicatedServerUtils {
231
258
  * @remarks
232
259
  * Shuts down the dedicated server.
233
260
  *
261
+ * This function can't be called in restricted-execution mode.
262
+ *
234
263
  */
235
264
  stopServer(): void;
236
265
  }
@@ -246,6 +275,8 @@ export class LevelStorage {
246
275
  * Disables the server writing to the world files and begins
247
276
  * creating a snapshot.
248
277
  *
278
+ * This function can't be called in restricted-execution mode.
279
+ *
249
280
  * @throws This function can throw errors.
250
281
  *
251
282
  * {@link LevelStorageSaveStateChangeError}
@@ -256,6 +287,8 @@ export class LevelStorage {
256
287
  * Returns the path and size of every file in the current
257
288
  * snapshot if a snapshot is being taken.
258
289
  *
290
+ * This function can't be called in restricted-execution mode.
291
+ *
259
292
  * @throws This function can throw errors.
260
293
  *
261
294
  * {@link LevelStorageSaveStateChangeError}
@@ -266,6 +299,8 @@ export class LevelStorage {
266
299
  * Re-enables server writing world state to files and removes
267
300
  * snapshot.
268
301
  *
302
+ * This function can't be called in restricted-execution mode.
303
+ *
269
304
  * @throws This function can throw errors.
270
305
  *
271
306
  * {@link LevelStorageSaveStateChangeError}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-admin",
3
- "version": "1.0.0-beta.1.26.30-preview.32",
3
+ "version": "1.0.0-beta.1.26.40-preview.23",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "peerDependencies": {
16
16
  "@minecraft/common": "^1.0.0",
17
- "@minecraft/server": "^1.17.0 || ^2.0.0"
17
+ "@minecraft/server": "^1.17.0 || ^2.9.0-rc.1.26.40-preview.23"
18
18
  },
19
19
  "license": "MIT"
20
20
  }