mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-14 15:20:24 -04:00
commit
84b32fd4d3
1 changed files with 7 additions and 3 deletions
|
@ -27,7 +27,8 @@ server.on('login', function(client) {
|
|||
gameMode: 1,
|
||||
dimension: 0,
|
||||
difficulty: 2,
|
||||
maxPlayers: server.maxPlayers
|
||||
maxPlayers: server.maxPlayers,
|
||||
reducedDebugInfo:false
|
||||
});
|
||||
client.write('position', {
|
||||
x: 0,
|
||||
|
@ -35,7 +36,7 @@ server.on('login', function(client) {
|
|||
z: 0,
|
||||
yaw: 0,
|
||||
pitch: 0,
|
||||
onGround: true
|
||||
flags: 0x00
|
||||
});
|
||||
|
||||
client.on('chat', function(data) {
|
||||
|
@ -69,7 +70,10 @@ function broadcast(message, exclude, username) {
|
|||
message
|
||||
]
|
||||
};
|
||||
client.write('chat', {message: JSON.stringify(msg)});
|
||||
client.write('chat', {
|
||||
message: JSON.stringify(msg),
|
||||
position:0
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue