-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.default.php
More file actions
76 lines (69 loc) · 2.69 KB
/
Copy pathconfig.default.php
File metadata and controls
76 lines (69 loc) · 2.69 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
$baseMinecraftPath = '/opt/minecraft/mc-server';
return [
// 請依據你的環境與需求修改
'base_url' => 'http://localhost:8000',
'mods_path' => $baseMinecraftPath.'/mods',
'serverside_prefixs' => ['serveronly_', 'server_'],
'mods' => [
'common' => [
'path' => $baseMinecraftPath.'/mods',
'dl_urlpath' => '/files/mods/',
'ignore_serverside_prefix' => true,
'only_serverside_prefix' => false,
],
'client' => [
'path' => $baseMinecraftPath.'/clientmods',
'dl_urlpath' => '/files/clientmods/',
'ignore_serverside_prefix' => true,
'only_serverside_prefix' => false,
],
'optional' => [
'path' => $baseMinecraftPath.'/optionalmods',
'dl_urlpath' => '/files/optional/',
'ignore_serverside_prefix' => true,
'only_serverside_prefix' => false,
],
'server' => [
'path' => $baseMinecraftPath.'/mods',
'dl_urlpath' => '/files/mods/',
'ignore_serverside_prefix' => false,
'only_serverside_prefix' => true,
]
],
'other_folders' => [
$baseMinecraftPath.'/config' => '/files/config/',
$baseMinecraftPath.'/defaultconfigs' => '/files/defaultconfigs/',
$baseMinecraftPath.'/kubejs' => '/files/kubejs/',
$baseMinecraftPath.'/modernfix' => '/files/modernfix/',
$baseMinecraftPath.'/resourcepacks' => '/files/resourcepacks/',
$baseMinecraftPath.'/tacz' => '/files/tacz/',
$baseMinecraftPath.'/tlm_custom_pack' => '/files/tlm_custom_pack/',
],
'resourcepacks' => [
'path' => $baseMinecraftPath.'/resourcepacks',
],
// 主要伺服器進入點(若有用到Velocity做為群組伺服器(代理伺服器),這部份填代理伺服器主要進入點)
'minecraft_public_hoststring' => 'mcserver.barian.moe',
'minecraft_host' => '127.0.0.1',
'minecraft_port' => '25565',
'minecraft_qport' => null,
// 有多個伺服器
'minecraft_servers' => [
'youer1' => [ // 對應到ID
'name' => 'youer1', // 之後串前端網頁時,顯式給使用者看的
'public_hoststring' => 'mcserver.barian.moe /server youer1',
'host' => '127.0.0.1',
'port' => 24565,
'qport' => 24565, // 若有啟用 enable-query=true query.port=24565
],
'youer2' => [
'name' => 'youer2',
'public_hoststring' => 'mcserver.barian.moe /server youer2',
'host' => '127.0.0.1',
'port' => 23565,
'qport' => null,
],
],
'debug' => false
];