mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Add channel quick message prefixes
This commit is contained in:
1 parent
ff40025fe5
commit
745ccd86bd
3 files changed
+43
-8
No files matched your search
@@ -9,6 +9,7 @@ import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.key.Keyed;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.checkerframework.framework.qual.DefaultQualifier;
|
||||
|
||||
import static net.kyori.adventure.text.Component.empty;
|
||||
@@ -59,6 +60,14 @@ public interface ChatChannel extends Keyed, ChatComponentRenderer {
|
||||
*/
|
||||
Set<Audience> filterRecipients(final CarbonPlayer sender, final Set<Audience> recipients);
|
||||
|
||||
/**
|
||||
* Messages will be sent in this channel if they start with this prefix.
|
||||
*
|
||||
* @return the message prefix that sends messages in this channel
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Nullable String quickPrefix();
|
||||
|
||||
/**
|
||||
* Represents the result of a channel permission check.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user