Fix Server maxPlayers option
This commit is contained in:
parent
a79be99c0f
commit
6b5aa08dba
1 changed files with 3 additions and 2 deletions
|
|
@ -118,8 +118,9 @@ class Server extends EventEmitter {
|
|||
return this.advertisement
|
||||
}
|
||||
|
||||
async listen (host = this.options.host, port = this.options.port) {
|
||||
this.raknet = new this.RakServer({ host, port }, this)
|
||||
async listen () {
|
||||
const { host, port, maxPlayer } = this.options
|
||||
this.raknet = new this.RakServer({ host, port, maxPlayers }, this)
|
||||
|
||||
try {
|
||||
await this.raknet.listen()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue