@minecraft/server-admin 1.0.0-beta.1.26.30-preview.30 → 1.0.0-beta.1.26.40-preview.20

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 +28 -0
  2. package/package.json +1 -1
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.
@@ -204,6 +218,8 @@ export class DedicatedServerUtils {
204
218
  * @remarks
205
219
  * Reloads the cdn configuration from disk.
206
220
  *
221
+ * This function can't be called in restricted-execution mode.
222
+ *
207
223
  * @throws This function can throw errors.
208
224
  *
209
225
  * {@link minecraftcommon.EngineError}
@@ -213,6 +229,8 @@ export class DedicatedServerUtils {
213
229
  * @remarks
214
230
  * Reloads the permissions for the server from disk.
215
231
  *
232
+ * This function can't be called in restricted-execution mode.
233
+ *
216
234
  * @throws This function can throw errors.
217
235
  *
218
236
  * {@link minecraftcommon.EngineError}
@@ -222,6 +240,8 @@ export class DedicatedServerUtils {
222
240
  * @remarks
223
241
  * Reloads the script configuration for the server from disk.
224
242
  *
243
+ * This function can't be called in restricted-execution mode.
244
+ *
225
245
  * @throws This function can throw errors.
226
246
  *
227
247
  * {@link minecraftcommon.EngineError}
@@ -231,6 +251,8 @@ export class DedicatedServerUtils {
231
251
  * @remarks
232
252
  * Shuts down the dedicated server.
233
253
  *
254
+ * This function can't be called in restricted-execution mode.
255
+ *
234
256
  */
235
257
  stopServer(): void;
236
258
  }
@@ -246,6 +268,8 @@ export class LevelStorage {
246
268
  * Disables the server writing to the world files and begins
247
269
  * creating a snapshot.
248
270
  *
271
+ * This function can't be called in restricted-execution mode.
272
+ *
249
273
  * @throws This function can throw errors.
250
274
  *
251
275
  * {@link LevelStorageSaveStateChangeError}
@@ -256,6 +280,8 @@ export class LevelStorage {
256
280
  * Returns the path and size of every file in the current
257
281
  * snapshot if a snapshot is being taken.
258
282
  *
283
+ * This function can't be called in restricted-execution mode.
284
+ *
259
285
  * @throws This function can throw errors.
260
286
  *
261
287
  * {@link LevelStorageSaveStateChangeError}
@@ -266,6 +292,8 @@ export class LevelStorage {
266
292
  * Re-enables server writing world state to files and removes
267
293
  * snapshot.
268
294
  *
295
+ * This function can't be called in restricted-execution mode.
296
+ *
269
297
  * @throws This function can throw errors.
270
298
  *
271
299
  * {@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.30",
3
+ "version": "1.0.0-beta.1.26.40-preview.20",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {