-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: backport 4.3.0 changes into master (#432)
* chore: backport all 4.3.0 changes * docs: remove changelog line that does not apply
- Loading branch information
1 parent
d37c5b7
commit 89515cb
Showing
6 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Core from './core.js' | ||
|
||
export default class eldewrito extends Core { | ||
async run (state) { | ||
const json = await this.request({ | ||
url: 'http://' + this.options.address + ':' + this.options.port, | ||
responseType: 'json' | ||
}) | ||
|
||
for (const one of json.players) { | ||
state.players.push({ name: one.name, team: one.team }) | ||
} | ||
|
||
state.name = json.name | ||
state.map = json.map | ||
state.maxplayers = json.maxPlayers | ||
state.connect = this.options.address + ':' + json.port | ||
|
||
state.raw = json | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters