parent
bf6eeb288f
commit
c6b7b0284f
1 changed files with 2 additions and 2 deletions
|
|
@ -230,12 +230,12 @@ displaying them differently. See next section.
|
||||||
As pointed out earlier, the `@time` command is meant to be used with a standard calendar, not a
|
As pointed out earlier, the `@time` command is meant to be used with a standard calendar, not a
|
||||||
custom one. We can easily create a new command though. We'll call it `time`, as is often the case
|
custom one. We can easily create a new command though. We'll call it `time`, as is often the case
|
||||||
on other MU*. Here's an example of how we could write it (for the example, you can create a file
|
on other MU*. Here's an example of how we could write it (for the example, you can create a file
|
||||||
`showtime.py` in your `commands` directory and paste this code in it):
|
`gametime.py` in your `commands` directory and paste this code in it):
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# in a file mygame/commands/gametime.py
|
# in a file mygame/commands/gametime.py
|
||||||
|
|
||||||
from evennia.contrib import custom_gametime
|
from evennia.contrib.base_systems import custom_gametime
|
||||||
|
|
||||||
from commands.command import Command
|
from commands.command import Command
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue