File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/com/comphenix/protocol/utility Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 22
22
import java .util .List ;
23
23
import java .util .UUID ;
24
24
25
+ import com .comphenix .protocol .wrappers .EnumWrappers ;
25
26
import com .comphenix .protocol .wrappers .WrappedChatComponent ;
26
27
import org .bukkit .command .CommandSender ;
27
28
import org .bukkit .entity .Player ;
@@ -94,6 +95,7 @@ public static List<PacketContainer> createChatPackets(String message) {
94
95
for (WrappedChatComponent component : components ) {
95
96
PacketContainer packet = new PacketContainer (PacketType .Play .Server .CHAT );
96
97
packet .getChatComponents ().write (0 , component );
98
+ packet .getChatTypes ().write (0 , EnumWrappers .ChatType .SYSTEM );
97
99
if (MinecraftVersion .NETHER_UPDATE_2 .atOrAbove ()) {
98
100
packet .getUUIDs ().write (0 , SERVER_UUID );
99
101
}
You can’t perform that action at this time.
0 commit comments