mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
Rebase the MessageHandler, MessageHandlerChain and MessageHandlerChainSet
Rebased several other pieces of code
This commit is contained in:
@@ -23,8 +23,8 @@ class OpenDoorAction < DistancedAction
|
||||
|
||||
end
|
||||
|
||||
# Message handler for opening and closing doors.
|
||||
on :message, :first_object_action do |ctx, player, message|
|
||||
# MessageListener for opening and closing doors.
|
||||
on :message, :first_object_action do |player, message|
|
||||
if DoorUtil::is_door?(message.id)
|
||||
puts "Player: #{player.position}, door: #{message.position}"
|
||||
door = DoorUtil::get_door_object(message.position, message.id)
|
||||
|
||||
Reference in New Issue
Block a user