rconcr
rconcr
Client for the RCON (Remote CONsole) protocol implemented in Crystal.
This Protocol is used to access a remote console on game servers. The implementation has been tested with Minecraft server, but should work with Source-compatible RCON servers as well.
Installation
-
Add the dependency to your
shard.yml
:dependencies: rconcr: github: straight-shoota/rconcr
-
Run
shards install
Usage
require "rconcr"
RCON::Client.open(address, host, password) do |client|
response = client.command "say Hello World from RCON!"
if response
RCON.colorize(STDOUT, response)
puts
else
abort "Server closed connection"
end
end
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/your-github-user/rconcr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Johannes Müller - creator and maintainer
Repository
rconcr
Owner
Statistic
- 3
- 0
- 0
- 3
- 0
- over 4 years ago
- April 4, 2020
License
Apache License 2.0
Links
Synced at
Thu, 21 Nov 2024 09:12:23 GMT
Languages