mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
Various changes.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
require 'java'
|
||||
|
||||
java_import 'org.apollo.game.model.Player'
|
||||
java_import 'org.apollo.game.event.impl.PositionEvent'
|
||||
java_import 'org.apollo.game.event.impl.SetTileItemEvent'
|
||||
|
||||
on :command, :drop, RIGHTS_ADMIN do |player, command|
|
||||
player.send(PositionEvent.new(player.position, player.position))
|
||||
player.send(SetTileItemEvent.new(70, 1))
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
require 'java'
|
||||
|
||||
java_import 'org.apollo.game.model.Player'
|
||||
java_import 'org.apollo.game.event.impl.PositionEvent'
|
||||
java_import 'org.apollo.game.event.impl.SetTileItemEvent'
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
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!"
|
||||
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
|
||||
Reference in New Issue
Block a user