Skip to content

Commit

Permalink
[FEATURE] Add Shootmania default event handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvlk committed May 20, 2019
1 parent a9c8498 commit 4a2945f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pyplanet/apps/core/shootmania/callbacks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,27 @@ async def get_team_scores(data):
"""


on_default = Callback(
call='Script.Shootmania.Event.Default',
namespace='shootmania',
code='on_default',
target=handle_generic,
)
"""
:Signal:
On Default Event
:Code:
``shootmania:on_default``
:Description:
Callback sent when a old event or default event has been fired.
:Original Callback:
`Script` Shootmania.Event.Default
:param time: Time of server when callback is sent.
:param type: Name of the command
"""


player_added = Callback(
call='Script.Shootmania.Event.OnPlayerAdded',
namespace='shootmania',
Expand Down

0 comments on commit 4a2945f

Please sign in to comment.