source_server 0.1.6 copy "source_server: ^0.1.6" to clipboard
source_server: ^0.1.6 copied to clipboard

outdated

A library to connect to Source Dedicate Servers like CS:GO, CSS, TF2, ...

example/main.dart

import '../lib/source_server.dart';

void main() async {
  //By default the IP is: localhost and port: 27015 .
  SourceServer rcon = SourceServer('foo');
  //Attempt to connect.
  await rcon.connect();
  //Print the 'status' reply.
  print(await rcon.command('status'));

  //Print all players name.
  var players = await rcon.getPlayers();
  players.forEach((player) {
    print(player.name);
  });

  //Print server info.
  print(await rcon.getServerInfo());
}
6
likes
0
pub points
21%
popularity

Publisher

verified publisherhexah.net

A library to connect to Source Dedicate Servers like CS:GO, CSS, TF2, ...

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on source_server