Aller au contenu

Dynmap

De Nefald Wiki


Dynmap
Plugin
Catégorie map dynamique [edit]
Développeur(s) mikeprimm, FrozenCow2
Bukkit dynmap
Nefald
Status installé [edit]
Grade requis Intendant
Article
Dernière révision 18/03/2014


Dynmap est le plugin qui nous permet d'obtenir une carte dynamique de l'ensemble de nos mondes.

Commandes et permissions

  • /dynmap quiet - retirer les alertes lors des rendus de map


Utiliser un serveur web externe

Lighttpd

Dans configuration.txt cherchez

<syntaxhighlight lang="robots">

 - class: org.dynmap.InternalClientUpdateComponent
   sendhealth: true
   allowwebchat: true
   webchat-interval: 5
 #- class: org.dynmap.JsonFileClientUpdateComponent
 #  writeinterval: 1
 #  sendhealth: true
 #  allowwebchat: false

</syntaxhighlight>

et remplacez par

<syntaxhighlight lang="robots">

  1. - class: org.dynmap.InternalClientUpdateComponent
 #  sendhealth: true
 #  allowwebchat: true
 #  webchat-interval: 5
 - class: org.dynmap.JsonFileClientUpdateComponent
   writeinterval: 1
   sendhealth: true
   allowwebchat: false

</syntaxhighlight>


To disable the internal updating mechanism and enable the json-file updating mechanism. This will write to the file standalone/dynmap_world.json in your web-path at an interval that is specified with writeinterval.

Copy your files in plugins/dynmap/web to a directory of your webserver. Change configuration.txt so that it points with both tilespath and webpath to the paths where you placed the web-files. For *nix



<syntaxhighlight lang="robots">

  1. The path where the tile-files are placed.

tilespath: /path/to/web/server/dynmap/web/tiles

  1. The path where the web-files are located.

webpath: /path/to/web/server/dynmap/web </syntaxhighlight>


<syntaxhighlight lang="xorg_conf">

 server.modules = ( "mod_access",
 "mod_rewrite",
 "mod_proxy",
 "mod_fastcgi"
 )

</syntaxhighlight>

<syntaxhighlight lang="xorg_conf"> alias.url += ( "/dynmap/tiles/" => "/home/minecraft/minecraft_server/plugins/dynmap/web/tiles/" )

url.rewrite-once += (

       "^/dynmap/up/(.*)" => "/up/$1",
       "^/dynmap/standalone/(.*)" => "/standalone/$1"

)

$HTTP["url"] =~ "^/up/" {

       proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )

} $HTTP["url"] =~ "^/standalone/" {

       proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )

} </syntaxhighlight>