Project

mojang

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby library accessing the Mojang and Minecraft web APIs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.9
~> 3.12
 Project Readme

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)