We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad26dc0 commit ed6936fCopy full SHA for ed6936f
src/main/kotlin/dev/fruxz/stacked/extension/Audience.kt
@@ -0,0 +1,19 @@
1
+package dev.fruxz.stacked.extension
2
+
3
+import net.kyori.adventure.audience.Audience
4
5
+/**
6
+ * This extension takes every [Audience] and converts it into a single [Audience] instance.
7
+ * @see Audience.audience
8
+ * @author Fruxz
9
+ * @since 2025.5
10
+ */
11
+val Iterable<Audience>.asAudience get() = Audience.audience(this)
12
13
14
15
16
17
18
19
+val Array<out Audience>.asAudience get() = Audience.audience(*this)
0 commit comments