mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-02 20:17:03 -05:00
Merge pull request #398 from alrek-consulting/master
Fixed options.favicon in createServer
This commit is contained in:
commit
12d17e2eaf
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ function createServer(options) {
|
||||||
server.maxPlayers = options['max-players'] || 20;
|
server.maxPlayers = options['max-players'] || 20;
|
||||||
server.playerCount = 0;
|
server.playerCount = 0;
|
||||||
server.onlineModeExceptions = {};
|
server.onlineModeExceptions = {};
|
||||||
|
server.favicon = options.favicon || 0;
|
||||||
server.on("connection", function(client) {
|
server.on("connection", function(client) {
|
||||||
client.once('set_protocol', onHandshake);
|
client.once('set_protocol', onHandshake);
|
||||||
client.once('login_start', onLogin);
|
client.once('login_start', onLogin);
|
||||||
|
|
Loading…
Reference in a new issue