@minecraft/server-admin 1.0.0-beta.1.21.120-preview.21 → 1.0.0-beta.1.21.120-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.
- package/index.d.ts +25 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -60,8 +60,31 @@ export class AsyncPlayerJoinBeforeEvent {
|
|
|
60
60
|
readonly persistentId: string;
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
|
-
* Call this to
|
|
64
|
-
*
|
|
63
|
+
* Call this to explicitly allow the player to join the server.
|
|
64
|
+
* This is useful when player joining is disabled
|
|
65
|
+
* (`allow-player-joining` is set to `false` when playing on
|
|
66
|
+
* dedicated server).
|
|
67
|
+
*
|
|
68
|
+
* @throws This function can throw errors.
|
|
69
|
+
*
|
|
70
|
+
* {@link DisconnectedError}
|
|
71
|
+
*/
|
|
72
|
+
allowJoin(): void;
|
|
73
|
+
/**
|
|
74
|
+
* @remarks
|
|
75
|
+
* Deprecated - use {@link disallowJoin} instead.Call this to
|
|
76
|
+
* disconnect a player. They will be allowed to try to join
|
|
77
|
+
* again.
|
|
78
|
+
*
|
|
79
|
+
* @throws This function can throw errors.
|
|
80
|
+
*
|
|
81
|
+
* {@link DisconnectedError}
|
|
82
|
+
*/
|
|
83
|
+
disallowJoin(reason?: string): void;
|
|
84
|
+
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* Call this to stop the player from joining the server. They
|
|
87
|
+
* will be allowed to try to join again.
|
|
65
88
|
*
|
|
66
89
|
* @throws This function can throw errors.
|
|
67
90
|
*
|