@minecraft/server-admin 1.0.0-beta.1.21.50-preview.20 → 1.0.0-beta.1.21.50-preview.25
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 +16 -0
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
import * as minecraftcommon from '@minecraft/common';
|
|
28
|
+
import * as minecraftserver from '@minecraft/server';
|
|
28
29
|
/**
|
|
29
30
|
* This represents a placeholder object that represents a
|
|
30
31
|
* secret string. The contents of that string are not available
|
|
@@ -134,6 +135,21 @@ export class ServerVariables {
|
|
|
134
135
|
get(name: string): any | undefined;
|
|
135
136
|
}
|
|
136
137
|
|
|
138
|
+
/**
|
|
139
|
+
* @remarks
|
|
140
|
+
* Transfer player to another server.
|
|
141
|
+
*
|
|
142
|
+
* This function can't be called in read-only mode.
|
|
143
|
+
*
|
|
144
|
+
* @param player
|
|
145
|
+
* Player to transfer.
|
|
146
|
+
* @param host
|
|
147
|
+
* Host of the server to transfer to.
|
|
148
|
+
* @param port
|
|
149
|
+
* Port of the server to transfer to.
|
|
150
|
+
* @throws This function can throw errors.
|
|
151
|
+
*/
|
|
152
|
+
export function transferPlayer(player: minecraftserver.Player, host: string, port: number): void;
|
|
137
153
|
/**
|
|
138
154
|
* @remarks
|
|
139
155
|
* A globally available object that returns a list of
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-admin",
|
|
3
|
-
"version": "1.0.0-beta.1.21.50-preview.
|
|
3
|
+
"version": "1.0.0-beta.1.21.50-preview.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/common": "^1.0.0"
|
|
16
|
+
"@minecraft/common": "^1.0.0",
|
|
17
|
+
"@minecraft/server": "^1.0.0"
|
|
17
18
|
},
|
|
18
19
|
"license": "MIT"
|
|
19
20
|
}
|