Fix typo in example (#130)

This commit is contained in:
u9g 2021-08-12 00:05:29 -04:00 committed by GitHub
commit 3267bbfca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()} !`)
})
})
})