Update prismarine-auth usage (#153)

This commit is contained in:
extremeheat 2021-11-12 16:14:15 -05:00 committed by GitHub
commit 1b422ac4ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 10 deletions

View file

@ -4,9 +4,7 @@ const client = bedrock.createClient({
host: 'localhost', // optional
port: 19132, // optional, default 19132
username: 'Notch', // the username you want to join as, optional if online mode
offline: false, // optional, default false. if true, do not login with Xbox Live. You will not be asked to sign-in if set to true.
// Optional for some servers which verify the title ID:
// authTitle: bedrock.title.MinecraftNintendoSwitch
offline: false // optional, default false. if true, do not login with Xbox Live. You will not be asked to sign-in if set to true.
})
client.on('text', (packet) => { // Listen for chat messages and echo them back.

View file

@ -1,4 +1,4 @@
const { Relay, title } = require('bedrock-protocol')
const { Relay } = require('bedrock-protocol')
function createRelay () {
console.log('Creating relay')
@ -8,7 +8,6 @@ function createRelay () {
host: '0.0.0.0',
port: 19130,
offline: false,
authTitle: title.MinecraftNintendoSwitch,
/* Where to send upstream packets to */
destination: {
host: '127.0.0.1',