Added configuration and renamed Map to MapType.
This commit is contained in:
parent
ce60452a35
commit
3aa48f2215
10 changed files with 37 additions and 22 deletions
|
|
@ -5,6 +5,7 @@ import java.util.logging.Logger;
|
|||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.util.config.ConfigurationNode;
|
||||
import org.dynmap.debug.Debugger;
|
||||
import org.dynmap.kzedmap.KzedMap;
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ public class MapManager extends Thread {
|
|||
|
||||
private World world;
|
||||
private Debugger debugger;
|
||||
private org.dynmap.Map map;
|
||||
private MapType map;
|
||||
public StaleQueue staleQueue;
|
||||
|
||||
/* lock for our data structures */
|
||||
|
|
@ -42,7 +43,7 @@ public class MapManager extends Thread {
|
|||
debugger.debug(msg);
|
||||
}
|
||||
|
||||
public MapManager(World world, Debugger debugger)
|
||||
public MapManager(World world, Debugger debugger, ConfigurationNode configuration)
|
||||
{
|
||||
this.world = world;
|
||||
this.debugger = debugger;
|
||||
|
|
@ -59,7 +60,7 @@ public class MapManager extends Thread {
|
|||
//webPath = "/srv/http/dynmap/";
|
||||
webPath = "[JAR]";
|
||||
|
||||
map = new KzedMap(this, world, debugger);
|
||||
map = new KzedMap(this, world, debugger, configuration);
|
||||
}
|
||||
|
||||
/* initialize and start map manager */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue