Archived
0
This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
mc-core/core/README.MD

1.2 KiB

Core

Ядро сервера

Spring beans

ConfigFromSpring

Implements: mc.core.Config

Bean:

<bean id="config" class="mc.core.embedded.ConfigFromSpring">
    <property name="descriptionServer" value="MC Core"/>
    <property name="maxPlayers" value="100"/>
    <property name="faviconBase64" value="icon.png"/>
</bean>

InMemoryPlayerManager

Implements: mc.core.PlayerManager

Bean:

<bean id="playerManager" class="mc.core.embedded.InMemoryPlayerManager">
    <property name="keepAliveInterval" value="10"/>
</bean>

keepAliveInterval - как часто (в ms) отправлять клиентам пакет KeepAlive

GameLoop

Bean:

<bean id="gameLoop" class="mc.core.GameLoop">
    <property name="startGameTime" value="6000"/>
    <property name="timeMode" value="realtime"/>
</bean>

timeMode - режим хода времени суток.

Есть три режима:

  • 0 или idle - полная остановка хода времени суток;
  • normal - стандартных ход времени (20 минут = 1 игровой день);
  • realtime - соответствует реальному системному времени.