ChestSort/README.md

44 lines
2.2 KiB
Markdown
Raw Normal View History

2018-08-12 15:56:25 +02:00
# ChestSort
2020-05-16 21:55:07 +02:00
1.8.x to 1.15.x 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
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
If you want to use ChestSort as dependency for your own plugin, you can use our public maven repository:
```
<repositories>
<repository>
<id>jeff-media-repo</id>
<url>https://repo.jeff-media.de/maven2</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>de.jeff_media</groupId>
<artifactId>ChestSort</artifactId>
<version>8.9</version> <!-- Check www.chestsort.de for latest version -->
</dependency>
</dependencies>
```
2019-07-15 14:35:25 +02:00
## Building .jar file
2020-05-16 21:55:07 +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. Now you can do `mvn install`
2019-07-15 14:35:25 +02:00
2018-11-11 14:19:07 +01:00
## Technical stuff
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.
2019-04-29 15:58:28 +02:00
The plugin should cause no lag at all.
2019-07-15 14:44:13 +02:00
2020-06-10 18:21:41 +02:00
## API
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).
2019-07-15 14:44:13 +02:00
## Screenshots
2020-05-20 19:37:46 +02:00
<p align="center"><img src="https://www.spigotmc.org/attachments/chestsort-screen2-jpg.382332/" alt="Screenshot ChestSort" /></p>
2019-07-15 14:44:13 +02:00
2020-05-20 19:37:46 +02:00
<p align="center"><img src="https://proxy.spigotmc.org/389aa74fb5a6a5d49051e321525599ab729e0965?url=http%3A%2F%2Fapi.jeff-media.de%2Fchestsort%2Fspigotmc%2Fimg%2Fchestsort7.6.gifg" alt="Screenshot ChestSort" /></p>