From 59152bbf301f356be1df6dcfb0e9c9049fa441f6 Mon Sep 17 00:00:00 2001 From: Flowsqy <47575244+Flowsqy@users.noreply.github.com> Date: Thu, 30 Dec 2021 12:21:44 +0100 Subject: [PATCH] Fix javadoc --- .../java/de/epiceric/shopchest/command/ShopSubCommand.java | 3 +-- .../src/main/java/de/epiceric/shopchest/utils/ShopUtils.java | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plugin/src/main/java/de/epiceric/shopchest/command/ShopSubCommand.java b/plugin/src/main/java/de/epiceric/shopchest/command/ShopSubCommand.java index d52f7f6..8c291ef 100644 --- a/plugin/src/main/java/de/epiceric/shopchest/command/ShopSubCommand.java +++ b/plugin/src/main/java/de/epiceric/shopchest/command/ShopSubCommand.java @@ -36,9 +36,8 @@ public abstract class ShopSubCommand { * Execute the sub command * @param sender Sender of the command * @param command Command which was executed - * @param args Arguments of the command ({@code args[0]} is the sub command's name) * @param label Alias of the command which was used - * @param args Passed command arguments + * @param args Arguments of the command ({@code args[0]} is the sub command's name) * @return Whether the sender should be sent the help message */ public boolean execute(CommandSender sender, Command command, String label, String[] args) { diff --git a/plugin/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java b/plugin/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java index 88960ee..8944077 100644 --- a/plugin/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java +++ b/plugin/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java @@ -286,7 +286,7 @@ public class ShopUtils { /** * Get the amount of shops of a player * @param p Player, whose shops should be counted - * @return The amount of a shops a player has (if {@link Config#excludeAdminShops} is true, admin shops won't be counted) + * @return The amount of a shops a player has (admin shops won't be counted) */ public int getShopAmount(OfflinePlayer p) { return playerShopAmount.getOrDefault(p.getUniqueId(), new Counter()).get(); @@ -352,9 +352,8 @@ public class ShopUtils { /** * Gets all shops in the given chunks from the database and adds them to the server - * @param chunk The chunks to load shops from + * @param chunks The chunks to load shops from * @param callback Callback that returns the amount of shops added if succeeded - * @see ShopUtils#loadShops(Chunk Callback) */ public void loadShops(final Chunk[] chunks, final Callback callback) { plugin.getShopDatabase().getShopsInChunks(chunks, new Callback>(plugin) {