From 3267bbfca16fd3c154092edccb6468f5717141a0 Mon Sep 17 00:00:00 2001 From: u9g <43508353+u9g@users.noreply.github.com> Date: Thu, 12 Aug 2021 00:05:29 -0400 Subject: [PATCH] Fix typo in example (#130) --- examples/serverReadmeExample.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/serverReadmeExample.js b/examples/serverReadmeExample.js index 06ab2d9..92039f7 100644 --- a/examples/serverReadmeExample.js +++ b/examples/serverReadmeExample.js @@ -1,6 +1,6 @@ /* eslint-disable */ const bedrock = require('bedrock-protocol') -const server = new bedrock.createServer({ +const server = bedrock.createServer({ host: '0.0.0.0', // optional port: 19132, // optional version: '1.17.10', // The server version @@ -15,4 +15,4 @@ server.on('connect', client => { const d = new Date() // Once client is in the server, send a colorful kick message client.disconnect(`Good ${d.getHours() < 12 ? '§emorning§r' : '§3afternoon§r'} :)\n\nMy time is ${d.toLocaleString()} !`) }) -}) \ No newline at end of file +})