๐Ÿ“ฆ jhstatewide / rubymine

a plugin for the hey0 mod for Minecraft that allows JRuby to be used to create plugins

โ˜… 3 stars โ‘‚ 0 forks ๐Ÿ‘ 3 watching
๐Ÿ“ฅ Clone https://github.com/jhstatewide/rubymine.git
HTTPS git clone https://github.com/jhstatewide/rubymine.git
SSH git clone git@github.com:jhstatewide/rubymine.git
CLI gh repo clone jhstatewide/rubymine
Joshua Harding Joshua Harding added an example word scramble game 402a5b1 15 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ dist
๐Ÿ“ example_plugins
๐Ÿ“ lib
๐Ÿ“ nbproject
๐Ÿ“ ruby
๐Ÿ“ src
๐Ÿ“„ .hgignore
๐Ÿ“„ build.xml
๐Ÿ“„ README.md
๐Ÿ“„ README.md

RubyMine ====================================

Synopsis
RubyMine is a plugin for hey0's mod for Minecraft. This plugin allows you to create other plugins with JRuby.

Ruby is an object oriented scripting language and I find it much more interesting than Java.

Installation


  • Copy lib/jruby.jar and the dist/RubyMine.jar.
  • In your plugins directory, create a ruby directory.
  • Place init.rb and any other wanted ruby plugins into the plugins/ruby directory.
  • Add RubyMine to your plugins line in server.properties
  • Launch your hey0 mod equipped Minecraft server and enjoy the Ruby goodness.
Project Status
Currently the plugin provides 3 globals to the integrated JRuby interpreter. $LOGGER $SERVER $ETC

All of the API exposed through hey0 should now be accessible through the Ruby interpreter.

Example Ruby Plugins


There is a time announcer in example_plugins. Every 60 seconds, this plugin announces the time to your players. Not useful, but a proof of concept.

TODO


  • More documentation.
  • More example plugins.
  • Support for loading rubygems.