@rustwirebot/rustplus.js 2.5.0 → 2.5.2
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/README.md +1 -1
- package/package.json +6 -6
- package/rustplus.proto +4 -4
package/README.md
CHANGED
|
@@ -283,7 +283,7 @@ npx @rustwirebot/rustplus.js --config-file=/path/to/config.json <command>
|
|
|
283
283
|
If you want to run the latest changes to the CLI tool, you can run it like so:
|
|
284
284
|
|
|
285
285
|
```
|
|
286
|
-
git clone https://github.com/
|
|
286
|
+
git clone https://github.com/rik8181/rustwirebot-rustplus.js
|
|
287
287
|
cd rustplus.js
|
|
288
288
|
npm install
|
|
289
289
|
node cli/index.js <command>
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rustwirebot/rustplus.js",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "NodeJS library for controlling Smart Switches and interacting with the Rust+ Companion API. Maintained fork of @liamcottle/rustplus.js, republished by BotForge Studios / RustWire.",
|
|
5
5
|
"main": "rustplus.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"rustplus": "
|
|
7
|
+
"rustplus": "cli/index.js"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/rik8181/rustwirebot-rustplus.js.git"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"rust",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"bugs": {
|
|
32
|
-
"url": "https://github.com/
|
|
32
|
+
"url": "https://github.com/rik8181/rustwirebot-rustplus.js/issues"
|
|
33
33
|
},
|
|
34
|
-
"homepage": "https://github.com/
|
|
34
|
+
"homepage": "https://github.com/rik8181/rustwirebot-rustplus.js#readme",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"axios": "^1.2.2",
|
|
37
37
|
"chrome-launcher": "^0.15.0",
|
|
@@ -45,4 +45,4 @@
|
|
|
45
45
|
"uuid": "^11.1.1",
|
|
46
46
|
"ws": "^8.3.0"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|
package/rustplus.proto
CHANGED
|
@@ -229,7 +229,7 @@ message AppInfo {
|
|
|
229
229
|
required uint32 wipeTime = 6;
|
|
230
230
|
required uint32 players = 7;
|
|
231
231
|
required uint32 maxPlayers = 8;
|
|
232
|
-
|
|
232
|
+
optional uint32 queuedPlayers = 9; // FIX: some real Rust servers omit this field entirely; was `required`, which crashed decoding with a ProtocolError instead of just defaulting to 0.
|
|
233
233
|
optional uint32 seed = 10;
|
|
234
234
|
optional uint32 salt = 11;
|
|
235
235
|
optional string logoImage = 12;
|
|
@@ -276,7 +276,7 @@ message AppEntityPayload {
|
|
|
276
276
|
message Item {
|
|
277
277
|
required int32 itemId = 1;
|
|
278
278
|
required int32 quantity = 2;
|
|
279
|
-
|
|
279
|
+
optional bool itemIsBlueprint = 3; // FIX: some servers omit this for non-blueprint items; was `required`
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -337,8 +337,8 @@ message AppMarker {
|
|
|
337
337
|
required int32 currencyId = 3;
|
|
338
338
|
required int32 costPerItem = 4;
|
|
339
339
|
required int32 amountInStock = 5;
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
optional bool itemIsBlueprint = 6; // FIX: some servers omit this for non-blueprint items; was `required`
|
|
341
|
+
optional bool currencyIsBlueprint = 7; // FIX: same as above; was `required`
|
|
342
342
|
optional float itemCondition = 8;
|
|
343
343
|
optional float itemConditionMax = 9;
|
|
344
344
|
}
|