-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault_config.py
40 lines (27 loc) · 986 Bytes
/
default_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import types
map_dims = types.SimpleNamespace()
PORT = 25565
NAME = "Change this name"
SOFTWARE = "PyPoc2 0.1.00.2"
MOTD = "horspeed=1.5"
MAPS_DIR = "maps"
CHECK_USERNAMES = True
UPDATE_DELAY = 0.03
AUTOSAVE_INTERVAL = 30000 #time in (milliseconds/UPDATE_DELAY) between saves
MAX_USERS = 16
#Whether this server should show up in the server list
PUBLIC = True
#Whether to use multiprocessing
USE_MP = True
SERVER_CPE_EXTENSIONS = (('CustomBlocks', 1), ('BulkBlockUpdate', 1), ('FullCP437', 1), ('MessageTypes', 1), ('EnvMapAspect', 1), ('HackControl', 1), ('LongerMessages', 1), ('ExtEntityPositions', 1), ('TwoWayPing', 1))
SERVER_COLORS = '01234567890abcdef'
STATUS_MESSAGES = ['**connections', '**disconnections', '**saves', '**autosaves']
BORDER_SIZE = 5
map_dims.x = 256
map_dims.y = 128
map_dims.z = 256
map_dims.np_x = map_dims.x // 2
map_dims.np_y = map_dims.y
map_dims.np_z = map_dims.z // 2
map_dims.center_x = map_dims.x // 2
map_dims.center_z = map_dims.z // 2