source_server 0.1.5 copy "source_server: ^0.1.5" to clipboard
source_server: ^0.1.5 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 = new 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
12%
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