From cd0ddc16e1b82e812fb4d30cc6678e360f003f9c Mon Sep 17 00:00:00 2001 From: kinash <92477814+andriycraft@users.noreply.github.com> Date: Sat, 20 May 2023 15:00:52 +0200 Subject: [PATCH] Update basicServer example to 1.19.80 (#399) --- examples/server/basicServer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/server/basicServer.js b/examples/server/basicServer.js index 92039f7..4febee6 100644 --- a/examples/server/basicServer.js +++ b/examples/server/basicServer.js @@ -3,7 +3,7 @@ const bedrock = require('bedrock-protocol') const server = bedrock.createServer({ host: '0.0.0.0', // optional port: 19132, // optional - version: '1.17.10', // The server version + version: '1.19.80', // The server version motd: { // The message of the day motd: 'Funtime Server', levelName: 'Wonderland' @@ -12,7 +12,7 @@ const server = bedrock.createServer({ server.on('connect', client => { client.on('join', () => { // The client has joined the server. - 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()} !`) + const date = new Date() // Once client is in the server, send a colorful kick message + client.disconnect(`Good ${date.getHours() < 12 ? '§emorning§r' : '§3afternoon§r'}\n\nMy time is ${date.toLocaleString()} !`) }) })