Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

masterodie/minecrarft_rtoolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinecraftRtoolkit

A Simple API Wrapper for Remote Toolkit

Installation

Add this line to your application's Gemfile:

gem 'minecraft_rtoolkit'

And then execute:

$ bundle

Or install it yourself as:

$ gem install minecraft_rtoolkit

Usage

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

Contributing

  1. Fork it ( https://github.com/[my-github-username]/minecraft_rtoolkit/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request