From 3063bbb94f08338fcb954c1a3e75066ea533cf8d Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Sat, 3 May 2025 19:52:14 -0400 Subject: [PATCH] [#2378] Update PLUGINS Example --- PLUGINS.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PLUGINS.md b/PLUGINS.md index a120985e..6fd20ef9 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -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: