Skip to content
Snippets Groups Projects
Commit 3350b7be authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

cleaned up alook slightly

parent 9c2e079d
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@ module Aethyr
super(player, commands, *args)
end
def self.admin_object_added(data, klass)
return unless (data[:game_object].is_a? Player) && data[:game_object].admin
data[:game_object].subscribe(klass.new(data[:game_object]))
end
protected
#Tail a file
def tail file, lines = 10
......
......@@ -11,8 +11,7 @@ module Aethyr
end
def self.object_added(data)
return unless data[:game_object].is_a? Player
data[:game_object].subscribe(AlookHandler.new(data[:game_object]))
return Aethyr::Extend::AdminHandler.admin_object_added(data, AlookHandler)
end
def player_input(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment