Dynmap

De Nefald Wiki
Aller à la navigation Aller à la recherche


Dynmap
Plugin
Catégorie Mapping [edit]
Développeur(s) mikeprimm, FrozenCow2
Bukkit dynmap
Nefald
Status installé [edit]
Grade requis Intendant
Article
Dernière révision 19/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
  - class: org.dynmap.InternalClientUpdateComponent
    sendhealth: true
    allowwebchat: true
    webchat-interval: 5
  #- class: org.dynmap.JsonFileClientUpdateComponent
  #  writeinterval: 1
  #  sendhealth: true
  #  allowwebchat: false
et remplacez par
#- class: org.dynmap.InternalClientUpdateComponent
  #  sendhealth: true
  #  allowwebchat: true
  #  webchat-interval: 5
  - class: org.dynmap.JsonFileClientUpdateComponent
    writeinterval: 1
    sendhealth: true
    allowwebchat: false


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



# The path where the tile-files are placed.
tilespath: /path/to/web/server/dynmap/web/tiles

# The path where the web-files are located.
webpath: /path/to/web/server/dynmap/web


  server.modules = ( "mod_access",
  "mod_rewrite",
  "mod_proxy",
  "mod_fastcgi"
  )
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 )) )
}