diff --git a/src/core/Client.py b/src/core/Client.py index ef0e4a8..ab29b00 100644 --- a/src/core/Client.py +++ b/src/core/Client.py @@ -1,7 +1,7 @@ # Developed by KuiToi Dev # File core.tcp_server.py # Written by: SantaSpeen -# Core version: 0.4.5 +# Core version: 0.4.8 # Licence: FPA # (c) kuitoi.su 2023 import asyncio @@ -142,6 +142,10 @@ class Client: if not message: message = "no message" to_all = False + if "\n" in message: + ms = message.split("\n") + for m in ms: + await self.send_message(m, to_all) await self._send(f"C:{message}", to_all=to_all) async def send_event(self, event_name, event_data, to_all=False): diff --git a/src/core/__init__.py b/src/core/__init__.py index 6f085a8..83c8a77 100644 --- a/src/core/__init__.py +++ b/src/core/__init__.py @@ -2,7 +2,7 @@ # File core.__init__.py # Written by: SantaSpeen # Version 1.5 -# Core version: 0.4.5 +# Core version: 0.4.8 # Licence: FPA # (c) kuitoi.su 2024 @@ -10,7 +10,7 @@ __title__ = 'KuiToi-Server' __description__ = 'BeamingDrive Multiplayer server compatible with BeamMP clients.' __url__ = 'https://github.com/kuitoi/kuitoi-Server' __version__ = '0.4.8 (pre)' -__build__ = 2663 # Я это считаю лог файлами +__build__ = 2664 # Я это считаю лог файлами __author__ = 'SantaSpeen' __author_email__ = 'admin@kuitoi.su' __license__ = "FPA" diff --git a/src/core/core.py b/src/core/core.py index 1ce2f78..e999aba 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -1,7 +1,7 @@ # Developed by KuiToi Dev # File core.core.py # Written by: SantaSpeen -# Version: 0.4.5 +# Version: 0.4.8 # Licence: FPA # (c) kuitoi.su 2023 import asyncio @@ -300,8 +300,8 @@ class Core: ticks_30s = deque(maxlen=30 * int(target_tps) + 1) ticks_60s = deque(maxlen=60 * int(target_tps) + 1) console.add_command("tps", lambda _: f"{calc_ticks(ticks_2s, 2):.2f}TPS; For last 5s, 30s, 60s: " - f"last: {calc_ticks(ticks_5s, 5):.2f}," - f"{calc_ticks(ticks_30s, 30):.2f}," + f"{calc_ticks(ticks_5s, 5):.2f}, " + f"{calc_ticks(ticks_30s, 30):.2f}, " f"{calc_ticks(ticks_60s, 60):.2f}.", None, "Print TPS", {"tps": None}) _add_to_sleep = deque([0.0, 0.0, 0.0,], maxlen=3 * int(target_tps)) diff --git a/src/core/tcp_server.py b/src/core/tcp_server.py index a9c5526..887feaf 100644 --- a/src/core/tcp_server.py +++ b/src/core/tcp_server.py @@ -1,7 +1,7 @@ # Developed by KuiToi Dev # File core.tcp_server.py # Written by: SantaSpeen -# Core version: 0.4.5 +# Core version: 0.4.8 # Licence: FPA # (c) kuitoi.su 2023 import asyncio diff --git a/src/core/tcp_server.pyi b/src/core/tcp_server.pyi index dd88c52..020faad 100644 --- a/src/core/tcp_server.pyi +++ b/src/core/tcp_server.pyi @@ -1,7 +1,7 @@ # Developed by KuiToi Dev # File core.tcp_server.pyi # Written by: SantaSpeen -# Core version: 0.4.5 +# Core version: 0.4.8 # Licence: FPA # (c) kuitoi.su 2023 import asyncio diff --git a/src/modules/PluginsLoader/__init__.py b/src/modules/PluginsLoader/__init__.py index 305f1a5..23bfcec 100644 --- a/src/modules/PluginsLoader/__init__.py +++ b/src/modules/PluginsLoader/__init__.py @@ -3,7 +3,7 @@ # Developed by KuiToi Dev # File modules.PluginsLoader # Written by: SantaSpeen -# Version 1.0 +# Version 1.1 # Licence: FPA # (c) kuitoi.su 2023 import asyncio