More debug messages.

This commit is contained in:
FrozenCow 2011-01-14 20:05:12 +01:00
parent 2e1a9d0a0e
commit 77b0bc1664
2 changed files with 3 additions and 3 deletions

View File

@ -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)");
}

View File

@ -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");
}