1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05:00
minetest/util/master
2014-02-24 20:41:04 +04:00
..
index.html Masterserver show privs and js autoload 2013-11-04 04:56:39 +04:00
list.js Fix null string escape 2014-02-24 20:41:04 +04:00
master.cgi Masterserver show privs and js autoload 2013-11-04 04:56:39 +04:00
README.md Fix masterserver README.md 2013-11-04 21:54:25 +04:00
servers.jst Send long announce as POST, show OS in useragent 2014-01-07 02:50:45 +04:00
style.css Remove link to #, add unlimited_player_transfer_distance to announce 2013-12-03 19:48:43 +04:00

Minetest server list

Setting up the webpage

You will have to install node.js, doT.js and their dependencies to compile the serverlist webpage template.

First install node.js, eg:

# apt-get install nodejs
# pacman -S nodejs
# emerge nodejs

Then install doT.js and its dependencies:

$ cd ~/code
$ git clone https://github.com/olado/doT.git
$ cd doT
$ npm install

Or with npm:

$ npm install dot commander mkdirp

And finally compile the template:

$ cd ~/minetest/util/master
$ ~/code/doT/bin/dot-packer -s . -d .

or

$ ~/node_modules/dot/bin/dot-packer -s . -d .

Embedding to any page

<script>
    var master = {
        root: 'http://servers.minetest.net/',
        limit: 10,
        clients_min: 1,
        no_flags: 1,
        no_ping: 1,
        no_uptime: 1
    };
</script>
<script src="http://servers.minetest.net/list.js"></script>