diff --git a/.gitignore b/.gitignore index 898b2d2..152bce9 100644 --- a/.gitignore +++ b/.gitignore @@ -132,3 +132,6 @@ dmypy.json /src/kuitoi.yml # cmdhistory from prompt_toolkit .cmdhistory +# Resources directories +/src/mods +/src/plugins diff --git a/src/core/__init__.py b/src/core/__init__.py index 25a76d9..8067fcc 100644 --- a/src/core/__init__.py +++ b/src/core/__init__.py @@ -9,13 +9,14 @@ __title__ = 'KuiToi-Server' __description__ = 'BeamingDrive Multiplayer server compatible with BeamMP clients.' __url__ = 'https://github.com/kuitoi/kuitoi-Server' __version__ = '0.1.0' -__build__ = 36 +__build__ = 77 __author__ = 'SantaSpeen' __author_email__ = 'admin@kuitoi.su' __license__ = "FPA" __copyright__ = 'Copyright 2023 © SantaSpeen (Maxim Khomutov)' import asyncio +import os from core import utils from core.config_provider import ConfigProvider @@ -26,7 +27,7 @@ from core.core import stop loop = asyncio.get_event_loop() -console = Console(prompt_out=":") +console = Console() log = utils.get_logger("init") log.info("Hello from KuiToi-Server!") @@ -51,4 +52,9 @@ if config.Server['debug'] is True: console.builtins_hook() console.logger_hook() +if not os.path.exists("mods"): + os.mkdir("mods") +if not os.path.exists("plugins"): + os.mkdir("plugins") + log.info("Initializing ready.")