mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-30 22:51:23 -04:00
Change encryption-enabled option to encryption.
Stays consistent with the examples.
This commit is contained in:
parent
29dea42ea7
commit
0ade43b9a5
2
index.js
2
index.js
@ -31,7 +31,7 @@ function createServer(options) {
|
||||
var checkTimeoutInterval = options.checkTimeoutInterval || 4 * 1000;
|
||||
var motd = options.motd || "A Minecraft server";
|
||||
var onlineMode = options['online-mode'] == null ? true : options['online-mode'];
|
||||
var encryptionEnabled = options['enable-encryption'] == null ? true : options['enable-encryption'];
|
||||
var encryptionEnabled = options['encryption'] == null ? true : options['encryption'];
|
||||
|
||||
var serverKey = ursa.generatePrivateKey(1024);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user