Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

drxid/rconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

rconnet

rconnect — is the RCON layer for Battlefield/Frostbite engine, powered by node.js and enhanced with Deno for modern code and type safety.
It enables easy creation of custom server management interfaces with automated map voting, team allocation, real-time player stats, and more.

Usage

import { BF4Api, RconClient } from './src/mod.ts'
const ip = ''
const port = ''
const password = ''
async function main() {
 const rconClient = new RconClient(ip, port)
 try {
 const bf4 = new BF4Api(rconClient)
 await bf4.login(password)
 const serverInfo = await bf4.serverInfo()
 console.log('serverInfo', serverInfo)
 bf4.onPlayerKill$.subscribe((e) => console.log('onPlayerKill', e))
 await bf4.adminEvents('true')
 } catch (e) {
 console.error(e)
 rconClient.disconnect()
 }
}
main()

For debug run your app

DEBUG=* deno run --allow-env --allow-net app.ts

About

Rcon BF3 & BF4 protocol wrapper for Deno

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /