mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
More debug messages.
This commit is contained in:
parent
2e1a9d0a0e
commit
77b0bc1664
@ -36,7 +36,7 @@ public class DynmapPlugin extends JavaPlugin {
|
||||
mgr.startManager();
|
||||
|
||||
try {
|
||||
server = new WebServer(mgr.serverport, mgr, getServer(), new NullDebugger());
|
||||
server = new WebServer(mgr.serverport, mgr, getServer(), debugger);
|
||||
} catch(IOException e) {
|
||||
log.info("position failed to start WebServer (IOException)");
|
||||
}
|
||||
|
@ -37,9 +37,7 @@ public class KzedMap extends Map {
|
||||
|
||||
public KzedMap(MapManager manager, World world, Debugger debugger) {
|
||||
super(manager, world, debugger);
|
||||
getDebugger().debug("Loading colors...");
|
||||
if (colors == null) {
|
||||
getDebugger().debug("Loading colors2...");
|
||||
colors = loadColorSet("colors.txt");
|
||||
}
|
||||
renderers = new MapTileRenderer[] {
|
||||
@ -326,8 +324,10 @@ public class KzedMap extends Map {
|
||||
/* load colorset */
|
||||
File cfile = new File(colorsetpath);
|
||||
if (cfile.isFile()) {
|
||||
getDebugger().debug("Loading colors from '" + colorsetpath + "'...");
|
||||
stream = new FileInputStream(cfile);
|
||||
} else {
|
||||
getDebugger().debug("Loading colors from jar...");
|
||||
stream = KzedMap.class.getResourceAsStream("/colors.txt");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user