mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-08 19:51:05 +00:00
Fix javadoc
This commit is contained in:
parent
9e1f715595
commit
59152bbf30
@ -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) {
|
||||
|
@ -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<Integer> callback) {
|
||||
plugin.getShopDatabase().getShopsInChunks(chunks, new Callback<Collection<Shop>>(plugin) {
|
||||
|
Loading…
Reference in New Issue
Block a user