https://github.com/elifoster/mojang-rb
A Ruby wrapper for the Mojang web API.
https://github.com/elifoster/mojang-rb
mojang ruby-gem
Last synced: about 2 months ago
JSON representation
A Ruby wrapper for the Mojang web API.
- Host: GitHub
- URL: https://github.com/elifoster/mojang-rb
- Owner: elifoster
- License: mit
- Created: 2016-04-03T00:04:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-21T19:31:06.000Z (about 4 years ago)
- Last Synced: 2025-08-05T02:52:27.237Z (2 months ago)
- Topics: mojang, ruby-gem
- Language: Ruby
- Homepage: https://rubygems.org/gems/mojang
- Size: 98.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mojang-rb
[](https://badge.fury.io/rb/mojang)
[]()A Ruby wrapper for the Mojang and Minecraft web APIs.
## Installation
### RubyGems```shell
$ gem install mojang
```### Bundler
Add this line to the application's Gemfile:```ruby
gem('mojang')
```Then execute:
```shell
$ bundle
```## Usage
```ruby
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)
```