mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
allow channels to use recipients list
This commit is contained in:
1 parent
e01ab04877
commit
94078a40c9
4 files changed
+46
-8
No files matched your search
@@ -7,7 +7,9 @@ import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public abstract class ChatChannel implements ForwardingAudience {
|
||||
@@ -75,6 +77,8 @@ public abstract class ChatChannel implements ForwardingAudience {
|
||||
|
||||
public abstract Boolean primaryGroupOnly();
|
||||
|
||||
public abstract Boolean honorsRecipientList();
|
||||
|
||||
public abstract boolean testContext(ChatUser sender, ChatUser target);
|
||||
|
||||
public abstract Object getContext(String key);
|
||||
@@ -102,6 +106,8 @@ public abstract class ChatChannel implements ForwardingAudience {
|
||||
*/
|
||||
public abstract void sendMessage(ChatUser user, String message, boolean fromBungee);
|
||||
|
||||
public abstract void sendMessage(ChatUser user, Collection<ChatUser> recipients, String message, boolean fromBungee);
|
||||
|
||||
public abstract void sendComponent(ChatUser user, Component component);
|
||||
|
||||
public String processPlaceholders(ChatUser user, String input) { return input; }
|
||||
|
||||
Reference in new issue
Block a user