source_server 3.1.2-dev copy "source_server: ^3.1.2-dev" to clipboard
source_server: ^3.1.2-dev copied to clipboard

outdated

A dart implementation of Source's Query Protocol and RCON from the developer.valvesoftware.com wiki.

SourceSerer #

A library to connect to Source Dedicated Servers [CS:GO, CSS, TF2, ...]

Get started #

Import the library (make sure to check for the latest version).

depedencies:
    source_server: ^3.1.0-dev

Connect to the server

  final server = await SourceServer.connect('127.0.0.1', 27015, password: '1234');

The password parameter can be supplied to connect via RCON as well.

After connecting you can issue the query commands:

  final info = await server.getInfo();
  final players = await server.getPlayers();
  final rules = await server.getRules();

Sending RCON commands #

The RCON password must be supplied to send RCON commands.

final reply = await server.command('status');

the method command will return a Future string holding the server reply.

6
likes
0
pub points
21%
popularity

Publisher

verified publisherhexah.net

A dart implementation of Source's Query Protocol and RCON from the developer.valvesoftware.com wiki.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

freezed_annotation

More

Packages that depend on source_server