@minecraft/server-admin 1.0.0-beta.1.26.0-preview.25 → 1.0.0-beta.1.26.0-preview.27
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 +7 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ export class AsyncPlayerJoinBeforeEvent {
|
|
|
72
72
|
allowJoin(): void;
|
|
73
73
|
/**
|
|
74
74
|
* @remarks
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
75
|
+
* Call this to disallow the player from joining the server.
|
|
76
|
+
* This is useful for preventing unauthorized access to the
|
|
77
|
+
* server.
|
|
78
78
|
*
|
|
79
79
|
* @throws This function can throw errors.
|
|
80
80
|
*
|
|
@@ -83,8 +83,10 @@ export class AsyncPlayerJoinBeforeEvent {
|
|
|
83
83
|
disallowJoin(reason?: string): void;
|
|
84
84
|
/**
|
|
85
85
|
* @remarks
|
|
86
|
-
*
|
|
87
|
-
* will be allowed to try to join
|
|
86
|
+
* Deprecated - use {@link disallowJoin} instead.Call this to
|
|
87
|
+
* disconnect a player. They will be allowed to try to join
|
|
88
|
+
* again. They will be allowed to try to join again after being
|
|
89
|
+
* disconnected.
|
|
88
90
|
*
|
|
89
91
|
* @throws This function can throw errors.
|
|
90
92
|
*
|