From 92bc0c4dd58ee36b87975fe93394027abf890bc3 Mon Sep 17 00:00:00 2001 From: JEFF <1122571+mfnalex@users.noreply.github.com> Date: Thu, 8 Nov 2018 00:00:24 +0100 Subject: [PATCH] Update HOW_TO_USE_API.md --- HOW_TO_USE_API.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/HOW_TO_USE_API.md b/HOW_TO_USE_API.md index d856e6d..6e2d4dd 100644 --- a/HOW_TO_USE_API.md +++ b/HOW_TO_USE_API.md @@ -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); -``` \ No newline at end of file +Inventory inv = ... +chestSort.sortInventory(inv); +```