diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/api/events/PlayerCosmeticEvent.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/api/events/PlayerCosmeticEvent.java index e8dea6f4..b56b457b 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/api/events/PlayerCosmeticEvent.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/api/events/PlayerCosmeticEvent.java @@ -5,23 +5,22 @@ import org.bukkit.event.Event; import org.jetbrains.annotations.NotNull; /** - * Represents a cosmetic user related event + * Represents an event related to a {@link CosmeticUser}. */ public abstract class PlayerCosmeticEvent extends PlayerEvent { - protected CosmeticUser user; + protected final CosmeticUser user; - public PlayerCosmeticEvent(@NotNull final CosmeticUser who) { + public PlayerCosmeticEvent(@NotNull CosmeticUser who) { super(who.getUniqueId()); user = who; } /** - * Returns the user involved in this event + * Returns the user involved in this event. * - * @return User who is involved in this event + * @return the user who is involved in this event */ - @NotNull - public final CosmeticUser getUser() { + public final @NotNull CosmeticUser getUser() { return user; } }