You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -322,7 +325,7 @@ and it made using PaperMC-Update a lot more complicated. Now, we read version in
322
325
eliminates the need for 'script-generated configuration files',
323
326
and makes PaperMC-Update easier to use and more accurate.
324
327
325
-
However, their are some things to keep in mind:
328
+
However, there are some things to keep in mind:
326
329
327
330
## Official Builds
328
331
@@ -358,11 +361,32 @@ for your build.
358
361
359
362
The old command line options were for managing the configuration file, such as removing it, creating it, and
360
363
dumping information to it. These features are now obsolete, but the command line options are included for
361
-
backwards compatibility. These options do not appear on the help menu and they do nothing, they are their only to
362
-
prevent usage errors. It is highly recommended that you stop using these options, and update any scripts or
364
+
backwards compatibility. These options do not appear on the help menu and they do nothing. This is to prevent usage errors. It is highly recommended that you stop using these options, and update any scripts or
363
365
implementations that use these features. These features might be removed in a later version if deemed necessary,
364
366
so be warned.
365
367
368
+
# Updater Class:
369
+
370
+
Developers can import the Updater class into their own projects.
371
+
The updater class offers entry points into the PaperMC API,
372
+
and allows users to get version/build data
373
+
and download jar files.
374
+
375
+
You can import and create the class like so:
376
+
377
+
```python
378
+
from server_update import Update
379
+
380
+
update = Update()
381
+
```
382
+
383
+
Just be sure the server_update.py file is present in the directory
384
+
of the code importing it.
385
+
386
+
You should have a look at the docstrings in the source code for usage.
387
+
All arguments and outputs are described and typed,
388
+
so implementing the Updater class into your code should be relatively painless.
389
+
366
390
# Conclusion
367
391
368
392
This script provides a simple method to check/download/install PaperMC server updates. You can add your command to the
0 commit comments