mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
Make some listeners Functional Interfaces.
This commit is contained in:
@@ -50,7 +50,9 @@ class ProcCommandListener < CommandListener
|
||||
end
|
||||
|
||||
# A LoginListener that executes a Proc object with the player argument.
|
||||
class ProcLoginListener < LoginListener
|
||||
class ProcLoginListener
|
||||
java_implements LoginListener
|
||||
|
||||
def initialize(block)
|
||||
super()
|
||||
@block = block
|
||||
@@ -62,7 +64,9 @@ class ProcLoginListener < LoginListener
|
||||
end
|
||||
|
||||
# A LogoutListener that executes a Proc object with the player argument.
|
||||
class ProcLogoutListener < LogoutListener
|
||||
class ProcLogoutListener
|
||||
java_implements LogoutListener
|
||||
|
||||
def initialize(block)
|
||||
super()
|
||||
@block = block
|
||||
|
||||
Reference in New Issue
Block a user