From 5d5eb4b8e47f0fec4d8f320a21e8751405c36dd5 Mon Sep 17 00:00:00 2001 From: mfnalex <1122571+mfnalex@users.noreply.github.com> Date: Sat, 23 Jul 2022 13:58:09 +0200 Subject: [PATCH] Update HOW_TO_USE_API.md --- HOW_TO_USE_API.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/HOW_TO_USE_API.md b/HOW_TO_USE_API.md index cb8fd13..bc35224 100644 --- a/HOW_TO_USE_API.md +++ b/HOW_TO_USE_API.md @@ -42,8 +42,7 @@ ChestSortAPI.sortInventory(player.getInventory()); ``` ### As `softdepend` -If you only softdepend on ChestSort, you have to check whether ChestSort is installed. To avoid exceptions, do not import the ChestSortAPI class -in classes that you instantiate regardless of whether ChestSort is installed, but use qualified method calls instead: +If you only softdepend on ChestSort, you have to check whether ChestSort is installed: ```java if(Bukkit.getPluginManager().getPlugin("ChestSort") != null) { @@ -137,4 +136,4 @@ Here is a complete example plugin that shows to add and use the ChestSort API: [ If you need help using the API, feel free to join my Discord server: -[![Join my Discord](https://api.jeff-media.de/img/discord1.png)](https://discord.jeff-media.de) \ No newline at end of file +[![Join my Discord](https://api.jeff-media.de/img/discord1.png)](https://discord.jeff-media.de)