mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 16:25:36 +00:00
Mods and Plugins dirs
This commit is contained in:
parent
45607ac3b3
commit
4381e614fa
3
.gitignore
vendored
3
.gitignore
vendored
@ -132,3 +132,6 @@ dmypy.json
|
||||
/src/kuitoi.yml
|
||||
# cmdhistory from prompt_toolkit
|
||||
.cmdhistory
|
||||
# Resources directories
|
||||
/src/mods
|
||||
/src/plugins
|
||||
|
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user