Update rcon.js

Added port parameter Rcon constructor
This commit is contained in:
Morgan Massens 2019-03-31 17:12:16 -05:00 committed by GitHub
commit 34a59a2f93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,8 @@ import ChangeLevel from './command/changelevel';
import Status from './command/status';
export default class Rcon {
constructor (host, password) {
this.connection = new Connection(host, password, port = 27021);
constructor (host, password, port = 27021) {
this.connection = new Connection(host, password, port);
}
disconnect () {