]> git.lizzy.rs Git - minetest.git/blob - util/master/README.md
Masterserver show privs and js autoload
[minetest.git] / util / master / README.md
1 Minetest server list
2 ====================
3
4 Setting up the webpage
5 ----------------------
6 You will have to install node.js, doT.js and their dependencies to compile
7 the serverlist webpage template.
8
9 First install node.js, eg:
10     # apt-get install nodejs
11     # pacman -S nodejs
12     # emerge nodejs
13
14 Then install doT.js and it's dependencies:
15     $ cd ~/code
16     $ git clone https://github.com/olado/doT.git
17     $ cd doT
18     $ npm install
19
20 Or by npm:
21     $ npm install dot commander mkdirp
22
23 And finally compile the template:
24     $ cd ~/minetest/util/master
25     $ ~/code/doT/bin/dot-packer -s . -d .
26 or
27     $ ./node_modules/dot/bin/dot-packer -s . -d .
28
29
30 Embending to any page
31 ----------------------
32
33 <script>var master = {root: 'http://servers.minetest.net/', limit:10, clients_min:1, no_flags:1, no_ping:1, no_uptime:1};</script>
34 <script src="http://servers.minetest.net/list.js"></script>