Skip to content

Commit bf89f7e

Browse files
authored
fix emitting playerJoin too early (#1424)
1 parent efee28e commit bf89f7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/login.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ module.exports = function (client, server, options) {
190190
client.once('login_acknowledged', onClientLoginAck)
191191
} else {
192192
client.state = states.PLAY
193-
server.emit('playerJoin', client)
194193
}
195194
client.settings = {}
196195

@@ -217,6 +216,9 @@ module.exports = function (client, server, options) {
217216
pluginChannels(client, options)
218217
if (client.supportFeature('signedChat')) chatPlugin(client, server, options)
219218
server.emit('login', client)
219+
if (!client.supportFeature('hasConfigurationState')) {
220+
server.emit('playerJoin', client)
221+
}
220222
}
221223

222224
function onClientLoginAck () {

0 commit comments

Comments
 (0)