source_server

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

source server

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.2-dev
copied to clipboard
Connect to the server
final server = await SourceServer.connect('127.0.0.1', 27015, password: '1234');
copied to clipboard
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();
copied to clipboard
Sending RCON commands #
The RCON password must be supplied to send RCON commands.
final reply = await server.command('status');
copied to clipboard
the method command will return a Future string holding the server reply.
Contributing #


Clone the project.


Setup a source dedicated server on your local machine


Install debendencies from pub


Update server details in test/source_server_test.dart


And run dart test -r expanded


For a new feature start by writing a test

Describe the test as what you expect.
Compare the result.



When you feel the feature or fix is ready, submit a PR.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.