From 11939a308a308cd359726325ebc3303ea27877d4 Mon Sep 17 00:00:00 2001 From: Draycia Date: Wed, 9 Feb 2022 19:17:40 -0800 Subject: [PATCH] Cleanup ChatChannel jd --- .../net/draycia/carbon/api/channels/ChatChannel.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/net/draycia/carbon/api/channels/ChatChannel.java b/api/src/main/java/net/draycia/carbon/api/channels/ChatChannel.java index 7798c446..30a893c5 100644 --- a/api/src/main/java/net/draycia/carbon/api/channels/ChatChannel.java +++ b/api/src/main/java/net/draycia/carbon/api/channels/ChatChannel.java @@ -142,8 +142,9 @@ public interface ChatChannel extends Keyed, ChatComponentRenderer { } /** - * Returns a result denoting that the player is denied for the action. + * Returns a result denoting that the action is denied for the player. * + * @param reason the reason the action was denied * @return that the action is denied * @since 2.0.0 */ @@ -151,6 +152,14 @@ public interface ChatChannel extends Keyed, ChatComponentRenderer { return new ChannelPermissionResult(false, reason); } + /** + * If True is supplied, returns a result denoting that the action was allowed. Otherwise, a result denoting that the action was denied. + * + * @param reason the reason, if any, that the action was allowed + * @param supplier the supplier to check + * @return an allowed result if true, otherwise a denied result + * @since 2.0.0 + */ public static ChannelPermissionResult allowedIf( final Component reason, final Supplier supplier