Update prismarine-auth usage (#153)
This commit is contained in:
parent
214c34c44b
commit
1b422ac4ce
5 changed files with 11 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue