Add ChatType
This commit is contained in:
1 parent
65c2207c0a
commit
5cf19a4e98
16 files changed
+158
-151
No files matched your search
@@ -66,8 +66,8 @@ impl Client {
|
||||
let public_key_der = &server.public_key_der;
|
||||
let packet = CEncryptionRequest::new(
|
||||
"",
|
||||
RawBytes(public_key_der),
|
||||
RawBytes(&verify_token),
|
||||
public_key_der,
|
||||
&verify_token,
|
||||
server.base_config.online_mode, // TODO
|
||||
);
|
||||
self.send_packet(packet);
|
||||
|
||||
@@ -2,8 +2,8 @@ use num_traits::FromPrimitive;
|
||||
use pumpkin_inventory::WindowType;
|
||||
use pumpkin_protocol::{
|
||||
client::play::{
|
||||
Animation, CEntityAnimation, CHeadRot, COpenScreen, CPlayerChatMessage, CUpdateEntityPos,
|
||||
CUpdateEntityPosRot, CUpdateEntityRot, FilterType,
|
||||
Animation, CEntityAnimation, CHeadRot, COpenScreen, CUpdateEntityPos, CUpdateEntityPosRot,
|
||||
CUpdateEntityRot,
|
||||
},
|
||||
server::play::{
|
||||
SChatCommand, SChatMessage, SConfirmTeleport, SPlayerCommand, SPlayerPosition,
|
||||
@@ -210,10 +210,10 @@ impl Client {
|
||||
// false,
|
||||
// ),
|
||||
// );
|
||||
server.broadcast_packet(
|
||||
/* server.broadcast_packet(
|
||||
self,
|
||||
CPlayerChatMessage::new(
|
||||
gameprofile.id,
|
||||
pumpkin_protocol::uuid::UUID(gameprofile.id),
|
||||
0.into(),
|
||||
None,
|
||||
message.clone(),
|
||||
@@ -227,6 +227,8 @@ impl Client {
|
||||
None,
|
||||
),
|
||||
)
|
||||
|
||||
*/
|
||||
/* server.broadcast_packet(
|
||||
self,
|
||||
CDisguisedChatMessage::new(
|
||||
|
||||
Reference in new issue
Block a user