bump version

This commit is contained in:
2024-07-30 01:30:43 +03:00
parent b64c449065
commit 8ed5671995
6 changed files with 13 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
# Developed by KuiToi Dev # Developed by KuiToi Dev
# File core.tcp_server.py # File core.tcp_server.py
# Written by: SantaSpeen # Written by: SantaSpeen
# Core version: 0.4.5 # Core version: 0.4.8
# Licence: FPA # Licence: FPA
# (c) kuitoi.su 2023 # (c) kuitoi.su 2023
import asyncio import asyncio
@@ -142,6 +142,10 @@ class Client:
if not message: if not message:
message = "no message" message = "no message"
to_all = False 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) await self._send(f"C:{message}", to_all=to_all)
async def send_event(self, event_name, event_data, to_all=False): async def send_event(self, event_name, event_data, to_all=False):

View File

@@ -2,7 +2,7 @@
# File core.__init__.py # File core.__init__.py
# Written by: SantaSpeen # Written by: SantaSpeen
# Version 1.5 # Version 1.5
# Core version: 0.4.5 # Core version: 0.4.8
# Licence: FPA # Licence: FPA
# (c) kuitoi.su 2024 # (c) kuitoi.su 2024
@@ -10,7 +10,7 @@ __title__ = 'KuiToi-Server'
__description__ = 'BeamingDrive Multiplayer server compatible with BeamMP clients.' __description__ = 'BeamingDrive Multiplayer server compatible with BeamMP clients.'
__url__ = 'https://github.com/kuitoi/kuitoi-Server' __url__ = 'https://github.com/kuitoi/kuitoi-Server'
__version__ = '0.4.8 (pre)' __version__ = '0.4.8 (pre)'
__build__ = 2663 # Я это считаю лог файлами __build__ = 2664 # Я это считаю лог файлами
__author__ = 'SantaSpeen' __author__ = 'SantaSpeen'
__author_email__ = 'admin@kuitoi.su' __author_email__ = 'admin@kuitoi.su'
__license__ = "FPA" __license__ = "FPA"

View File

@@ -1,7 +1,7 @@
# Developed by KuiToi Dev # Developed by KuiToi Dev
# File core.core.py # File core.core.py
# Written by: SantaSpeen # Written by: SantaSpeen
# Version: 0.4.5 # Version: 0.4.8
# Licence: FPA # Licence: FPA
# (c) kuitoi.su 2023 # (c) kuitoi.su 2023
import asyncio import asyncio
@@ -300,8 +300,8 @@ class Core:
ticks_30s = deque(maxlen=30 * int(target_tps) + 1) ticks_30s = deque(maxlen=30 * int(target_tps) + 1)
ticks_60s = deque(maxlen=60 * 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: " 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_5s, 5):.2f}, "
f"{calc_ticks(ticks_30s, 30):.2f}," f"{calc_ticks(ticks_30s, 30):.2f}, "
f"{calc_ticks(ticks_60s, 60):.2f}.", f"{calc_ticks(ticks_60s, 60):.2f}.",
None, "Print TPS", {"tps": None}) None, "Print TPS", {"tps": None})
_add_to_sleep = deque([0.0, 0.0, 0.0,], maxlen=3 * int(target_tps)) _add_to_sleep = deque([0.0, 0.0, 0.0,], maxlen=3 * int(target_tps))

View File

@@ -1,7 +1,7 @@
# Developed by KuiToi Dev # Developed by KuiToi Dev
# File core.tcp_server.py # File core.tcp_server.py
# Written by: SantaSpeen # Written by: SantaSpeen
# Core version: 0.4.5 # Core version: 0.4.8
# Licence: FPA # Licence: FPA
# (c) kuitoi.su 2023 # (c) kuitoi.su 2023
import asyncio import asyncio

View File

@@ -1,7 +1,7 @@
# Developed by KuiToi Dev # Developed by KuiToi Dev
# File core.tcp_server.pyi # File core.tcp_server.pyi
# Written by: SantaSpeen # Written by: SantaSpeen
# Core version: 0.4.5 # Core version: 0.4.8
# Licence: FPA # Licence: FPA
# (c) kuitoi.su 2023 # (c) kuitoi.su 2023
import asyncio import asyncio

View File

@@ -3,7 +3,7 @@
# Developed by KuiToi Dev # Developed by KuiToi Dev
# File modules.PluginsLoader # File modules.PluginsLoader
# Written by: SantaSpeen # Written by: SantaSpeen
# Version 1.0 # Version 1.1
# Licence: FPA # Licence: FPA
# (c) kuitoi.su 2023 # (c) kuitoi.su 2023
import asyncio import asyncio