-
Notifications
You must be signed in to change notification settings - Fork 16
/
craftd.conf.dist.in
116 lines (91 loc) · 2.95 KB
/
craftd.conf.dist.in
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# craftd config file
server: {
daemonize: false;
connection: {
bind: {
ipv4: "0.0.0.0";
ipv6: "::";
};
port: 25565;
backlog: 16;
};
# It's a good idea to keep the number of workers equal to the number of CPU cores,
# keep in mind that other threads might be spawned by plugins and that craftd has a minimum
# number of threads equal to WORKERS + 2
workers: 2;
files: {
motd: "@sysconfdir@/craftd/motd.conf.dist";
};
game: {
# This value is used by the base module to know if it has to act like the
# official server or if it can use craftd specific additions
standard: true;
# This configuration is used by the protocol implementation in use
protocol: {
name: "survival";
worlds: (
{ name: "world"; default: true;
rate: {
sunrise: 20;
day: 20;
sunset: 20;
night: 20;
};
}
);
};
clients: {
max: 0;
simultaneous: 0;
};
};
plugins: {
paths: ["plugins", "@libdir@/craftd/plugins"];
load: (
# Comment this if you don't want the web interface and RPC capabilities
{ name: "httpd";
connection: {
bind: {
ipv4: "127.0.0.1";
ipv6: "::1";
};
port: 25566;
};
},
{ name: "survival.base";
command: "/";
},
{ name : "survival.mapgen.classic"; },
{ name: "survival.persistence.nbt";
path: "@datadir@/craftd/worlds";
},
{ name: "survival.mapgen.classic"; },
{ name: "survival.commands.admin";
authorizations: (
{ name: "Notch";
password: "faggotree";
level: "admin";
}
);
ticket: {
max: 50;
};
},
{ name: "survival.tests"; }
);
};
scripting: {
paths: ["scripting", "@libdir@/craftd/scripting"];
engines: (
/* { name: "lisp";
paths: ["scripting/lisp/lib", "scripting/lisp/scripts", "@libdir@/craftd/scripting/lisp", "@libdir@/craftd/scripting/lisp/lib"];
options: [];
shell: false;
scripts: ["joined"];
}, */
{ name: "javascript";
paths: ["scripting/javascript/lib", "scripting/javascript/scripts", "@libdir@/craftd/scripting/javascript", "@libdir@/craftd/scripting/javascript/lib"];
}
);
};
};