- Made many small bugfixes to the @parent and @create functions as well as their underlying methods.
- Made it so user #1 is also affected by the on_player_creation() function. - Added an event folder for custom events, including a working example - Expanded the example commands and parents to include the changes to how they should be initialized. - Added an optional ansi scheme (not active by default)
This commit is contained in:
parent
a32840002c
commit
a9dbac8aae
16 changed files with 397 additions and 35 deletions
|
|
@ -20,5 +20,12 @@ def add_event(event):
|
|||
Args:
|
||||
* event: (IntervalEvent) The event to add to the scheduler.
|
||||
"""
|
||||
schedule.append(event)
|
||||
event.start_event_loop()
|
||||
|
||||
#don't add multiple instances of the same event
|
||||
if event in schedule:
|
||||
return
|
||||
#i = schedule.index(event)
|
||||
#schedule[i] = event
|
||||
else:
|
||||
schedule.append(event)
|
||||
event.start_event_loop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue