Make some listeners Functional Interfaces.

This commit is contained in:
Major- committed 2014-07-04 14:31:21 +01:00
1 parent 446caaaf2a
commit cea982a424
4 files changed
+12 -5

No files matched your search

+6 -2
View File
@@ -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