diff --git a/Core/src/main/java/com/plotsquared/core/player/OfflinePlotPlayer.java b/Core/src/main/java/com/plotsquared/core/player/OfflinePlotPlayer.java index 87505b44f..f88f58c7b 100644 --- a/Core/src/main/java/com/plotsquared/core/player/OfflinePlotPlayer.java +++ b/Core/src/main/java/com/plotsquared/core/player/OfflinePlotPlayer.java @@ -25,9 +25,9 @@ import java.util.UUID; public interface OfflinePlotPlayer extends PermissionHolder { /** - * Gets the {@code UUID} of this player + * Returns the UUID of the player. * - * @return the player {@link UUID} + * @return the UUID of the player */ UUID getUUID(); @@ -39,9 +39,9 @@ public interface OfflinePlotPlayer extends PermissionHolder { long getLastPlayed(); /** - * Gets the name of this player. + * Returns the name of the player. * - * @return the player name + * @return the name of the player */ String getName(); diff --git a/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java b/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java index 6bb9e1bad..74bb89294 100644 --- a/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java +++ b/Core/src/main/java/com/plotsquared/core/player/PlotPlayer.java @@ -273,8 +273,9 @@ public abstract class PlotPlayer

implements CommandCaller, OfflinePlotPlayer, return this.meta == null ? null : this.meta.remove(key); } + /** - * This player's name. + * Returns the name of the player. * * @return the name of the player */ diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotItemStack.java b/Core/src/main/java/com/plotsquared/core/plot/PlotItemStack.java index ea9e5d7de..68ea240dc 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotItemStack.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotItemStack.java @@ -67,14 +67,25 @@ public class PlotItemStack { return this.type; } + /** + * Returns the number of items in this stack. + * Valid values range from 1-255. + * + * @return the amount of items in this stack + */ public int getAmount() { return amount; } + /** + * Returns the given name of this stack of items. The name is displayed when + * hovering over the item. + * + * @return the given name of this stack of items + */ public String getName() { return name; } - public String[] getLore() { return lore; } diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotWeather.java b/Core/src/main/java/com/plotsquared/core/plot/PlotWeather.java index 331dc846b..1c4d8ada1 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotWeather.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotWeather.java @@ -18,9 +18,25 @@ */ package com.plotsquared.core.plot; +/** + * The different types of weather that can be set for a Plot. + */ public enum PlotWeather { + + /** + * Rainy weather conditions + */ RAIN, + /** + * Clear weather conditions + */ CLEAR, + /** + * Use the weather of the world the plot is in + */ WORLD, + /** + * Turn off weather for the plot + */ OFF }