mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Finish up message sending
This commit is contained in:
1 parent
db2a2325fc
commit
d7910751be
4 files changed
+68
-44
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package net.draycia.carbon.messaging;
|
||||
|
||||
import com.google.common.io.ByteArrayDataOutput;
|
||||
import net.draycia.carbon.CarbonChat;
|
||||
import net.draycia.carbon.channels.ChatChannel;
|
||||
import net.draycia.carbon.messaging.impl.BungeeMessageService;
|
||||
@@ -9,6 +10,7 @@ import net.kyori.adventure.text.format.TextColor;
|
||||
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
||||
|
||||
import java.util.UUID;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public class MessageManager {
|
||||
|
||||
@@ -125,4 +127,8 @@ public class MessageManager {
|
||||
return messageService;
|
||||
}
|
||||
|
||||
public void sendMessage(String key, UUID uuid, Consumer<ByteArrayDataOutput> consumer) {
|
||||
getMessageService().sendMessage(key, uuid, consumer);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user