mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-07-22 11:48:53 -04:00
fix indentation and a few other stuff webstorm felt like fixing (for example if (condition) -> if(condition) since that was the more frequent style in node-minecraft-protocol)
This commit is contained in:
parent
471b53de8f
commit
1dec8ccffd
30 changed files with 1130 additions and 1074 deletions
examples/server_helloworld
|
@ -8,10 +8,10 @@ var server = mc.createServer(options);
|
|||
|
||||
server.on('login', function(client) {
|
||||
var addr = client.socket.remoteAddress;
|
||||
console.log('Incoming connection', '('+addr+')');
|
||||
console.log('Incoming connection', '(' + addr + ')');
|
||||
|
||||
client.on('end', function() {
|
||||
console.log('Connection closed', '('+addr+')');
|
||||
console.log('Connection closed', '(' + addr + ')');
|
||||
});
|
||||
|
||||
// send init data so client will start rendering world
|
||||
|
@ -41,7 +41,7 @@ server.on('login', function(client) {
|
|||
'Hello, world!'
|
||||
]
|
||||
};
|
||||
client.write('chat', { message: JSON.stringify(msg), position: 0 });
|
||||
client.write('chat', {message: JSON.stringify(msg), position: 0});
|
||||
});
|
||||
|
||||
server.on('error', function(error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue