1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-21 09:31:21 +03:00

[#2378] Update PLUGINS Example

This commit is contained in:
David Sangrey 2025-05-03 19:52:14 -04:00
parent 73e134e39d
commit 3063bbb94f
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -612,9 +612,14 @@ for an example of these techniques.
#### Journal Entry
```python
from __future__ import annotations
from typing import Any
from EDMCLogging import get_main_logger
logger = get_main_logger()
def journal_entry(
cmdr: str, is_beta: bool, system: str, station: str, entry: Dict[str, Any], state: Dict[str, Any]
) -> Optional[str]:
cmdr: str, is_beta: bool, system: str, station: str, entry: dict[str, Any], state: dict[str, Any]
) -> str | None:
if entry['event'] == 'FSDJump':
# We arrived at a new system!
if 'StarPos' in entry: