Files
apollo/data/plugins/hello/hello.rb
T
2013-11-19 20:17:58 +00:00

14 lines
409 B
Ruby

require 'java'
java_import 'org.apollo.game.model.Animation'
java_import 'org.apollo.game.model.World'
SERVER_RELEASE = World.world.release_number
on :command, :hello do |player, command|
player.play_animation Animation::WAVE
player.send_message("Hello, World!")
end
on :command, :release do |player, command|
player.send_message("This server is currently running the #{SERVER_RELEASE} release.")
end