mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-23 19:16:14 +01:00
parent
13b3d8679d
commit
b7132196fb
@ -22,6 +22,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import com.comphenix.protocol.wrappers.EnumWrappers;
|
||||||
import com.comphenix.protocol.wrappers.WrappedChatComponent;
|
import com.comphenix.protocol.wrappers.WrappedChatComponent;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -94,6 +95,7 @@ public class ChatExtensions {
|
|||||||
for (WrappedChatComponent component : components) {
|
for (WrappedChatComponent component : components) {
|
||||||
PacketContainer packet = new PacketContainer(PacketType.Play.Server.CHAT);
|
PacketContainer packet = new PacketContainer(PacketType.Play.Server.CHAT);
|
||||||
packet.getChatComponents().write(0, component);
|
packet.getChatComponents().write(0, component);
|
||||||
|
packet.getChatTypes().write(0, EnumWrappers.ChatType.SYSTEM);
|
||||||
if (MinecraftVersion.NETHER_UPDATE_2.atOrAbove()) {
|
if (MinecraftVersion.NETHER_UPDATE_2.atOrAbove()) {
|
||||||
packet.getUUIDs().write(0, SERVER_UUID);
|
packet.getUUIDs().write(0, SERVER_UUID);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user