ChestSort/README.md

29 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2018-08-12 15:56:25 +02:00
# ChestSort
2022-12-20 06:55:51 +01:00
1.8 to 1.19.3 compatible Minecraft-/Spigot-Plugin to allow automatic chest and inventory sorting.
2018-08-12 15:56:25 +02:00
2018-08-13 19:10:16 +02:00
## Download & more information
2022-12-20 06:55:51 +01:00
2018-08-13 19:10:16 +02:00
Please see the related topic at spigotmc.org for information regarding the commands, permissions and download links:
2018-08-12 16:20:52 +02:00
https://www.spigotmc.org/resources/1-13-chestsort.59773/
2018-11-11 14:19:07 +01:00
2020-06-10 18:21:41 +02:00
## Maven repository
2022-12-20 06:55:51 +01:00
2020-06-10 18:25:37 +02:00
If you want to use ChestSort as dependency for your own plugin, you can use our public maven repository. More information can be found in the [API documentation](https://github.com/JEFF-Media-GbR/Spigot-ChestSort/blob/master/HOW_TO_USE_API.md).
2020-06-10 18:21:41 +02:00
2019-07-15 14:35:25 +02:00
## Building .jar file
2022-12-20 06:55:51 +01:00
2021-04-14 20:16:27 +02:00
~~To build the .jar file, you will need maven. Also, the CrackShot library is in no public repository, so please create a directory called `lib` and put the latest CrackShot.jar file [(available here)](https://www.spigotmc.org/resources/crackshot-guns.48301/) inside it.~~ (Not required as of ChestSort 9.6.0+)
2019-07-15 14:35:25 +02:00
2020-06-10 18:21:41 +02:00
## API
2022-12-20 06:55:51 +01:00
2020-06-10 18:21:41 +02:00
If you want to use ChestSort's advanced sorting features for your own plugin, you can use the ChestSort API. It provides methods to sort any given inventory, following the rules you have specified in your ChestSort's plugin.yml and the corresponding category files.
More information about the API can be found [HERE](https://github.com/JEFF-Media-GbR/Spigot-ChestSort/blob/master/HOW_TO_USE_API.md).
2020-06-10 18:25:37 +02:00
## Technical stuff
2022-12-20 06:55:51 +01:00
2020-06-10 18:25:37 +02:00
ChestSort takes an instance of org.bukkit.inventory.Inventory and copies the contents. The resulting array is sorted by rules defined in the config.yml. This takes far less than one millisecond for a whole chest. So there should be no problems even on big servers, where hundreds of players are using chests at the same time.
2022-12-20 06:55:51 +01:00
The plugin should cause no lag at all.