mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-11-29 22:24:06 +01:00
Update HOW_TO_USE_API.md
This commit is contained in:
parent
ed7d7d9310
commit
0564c8d51c
@ -1,6 +1,6 @@
|
|||||||
# API Usage
|
# API Usage
|
||||||
|
|
||||||
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.
|
If you want to use ChestSort's advanced sorting features for your own plugin, or if ChestSort causes trouble with 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, and a cancellable ChestSortEvent event that is fired whenever ChestSort is about to sort an inventory.
|
||||||
|
|
||||||
## Maven repository
|
## Maven repository
|
||||||
You can use maven to add ChestSort as a dependency to your Spigot-/Bukkit-Plugin:
|
You can use maven to add ChestSort as a dependency to your Spigot-/Bukkit-Plugin:
|
||||||
@ -69,4 +69,4 @@ public void onChestSortEvent(ChestSortEvent event) {
|
|||||||
|
|
||||||
## Example Plugin
|
## Example Plugin
|
||||||
|
|
||||||
Here is a complete example plugin that shows to add and use the ChestSort API: [LINK](https://github.com/JEFF-Media-GbR/ChestSortAPIExample)
|
Here is a complete example plugin that shows to add and use the ChestSort API: [LINK](https://github.com/JEFF-Media-GbR/ChestSortAPIExample)
|
||||||
|
Loading…
Reference in New Issue
Block a user