A Simple API Wrapper for Remote Toolkit
Add this line to your application's Gemfile:
gem 'minecraft_rtoolkit'
And then execute:
$ bundle
Or install it yourself as:
$ gem install minecraft_rtoolkit
require 'minecraft_rtoolkit'
api = Minecraft::RToolkit.new(host: '127.0.0.1', port: 25561, user: 'admin', password: 'password')
#Hold server
api.stop
#Unhold server
api.start
#Restart server
api.restart
#Force restart server
api.force_restart
#Force stop server
api.force_stop
#Disable scheduled restarts
api.disable_restarts
#Enable scheduled restarts
api.enable_restarts
#Reschedule restart
api.reschedule_restart('1h 30m')
#Get RToolkit version
api.version
For more information visit the RToolkit Wiki and Forum Post
- Fork it ( https://github.com/[my-github-username]/minecraft_rtoolkit/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