mojang-rb

Gem Version License

A Ruby wrapper for the Mojang and Minecraft web APIs.

Installation

RubyGems

$ gem install mojang

Bundler

Add this line to the application's Gemfile:

gem('mojang')

Then execute:

$ bundle

Usage

require 'mojang'

# Get status information
Mojang.status

# Check if a user has paid
Mojang.has_paid?('Notch')

# And get some information on them
uuid = Mojang.userid('Notch')
Mojang.name_history(uuid)
Mojang.username(uuid)