Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rubyist/mcbans

Access the MCBans API from ruby
https://github.com/rubyist/mcbans

Last synced: 23 days ago
JSON representation

Access the MCBans API from ruby

Awesome Lists containing this project

README

        

# MCBans

A simple library for accessing the MCBans API from Ruby.

## Install

gem install mcbans

## Usage

```
mcbans = MCBans.new('yourapikey')
player = mcbans.lookup('rubyist')
puts player.reputation #=> 10

mcbans.unban('foobar')
mcbans.global_ban('foobar', 'admin', 'griefing')
mcbans.local_ban('foobar', 'admin', 'griefing')
```

## Development

- Source hosted at [GitHub](https://github.com/rubyist/mcbans)
- Report issues and feature requests to [GitHub Issues](https://github.com/rubyist/mcbans/issues)

## License

(The MIT License)

Copyright (c) 2011 Scott Barron

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.