mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-07-05 11:05:35 +02:00
Merge branch 'master' of https://github.com/JEFF-Media-GbR/Spigot-ChestSort
This commit is contained in:
commit
f08b25e43d
|
@ -4,16 +4,16 @@ You have to import ChestSort.jar into your BuildPath.
|
|||
Then you can access it via the plugin manager:
|
||||
|
||||
```
|
||||
JeffChestSortPlugin chestSort = (JeffChestSortPlugin) getServer().getPluginManager().getPlugin("ChestSort");
|
||||
JeffChestSortPlugin chestSort = (JeffChestSortPlugin) getServer().getPluginManager().getPlugin("ChestSort");
|
||||
|
||||
if(chestSort==null || !(chestSort instanceof JeffChestSortPlugin)) {
|
||||
getLogger().warning("ChestSort plugin not found.");
|
||||
}
|
||||
if(chestSort==null || !(chestSort instanceof JeffChestSortPlugin)) {
|
||||
getLogger().warning("ChestSort plugin not found.");
|
||||
}
|
||||
```
|
||||
|
||||
Now, you can sort any Inventory! Just like this:
|
||||
|
||||
```
|
||||
Inventory inv = ...
|
||||
chestSort.sortInventory(inv);
|
||||
```
|
||||
Inventory inv = ...
|
||||
chestSort.sortInventory(inv);
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user