mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-15 06:45:20 +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();
|
mgr.startManager();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
server = new WebServer(mgr.serverport, mgr, getServer(), new NullDebugger());
|
server = new WebServer(mgr.serverport, mgr, getServer(), debugger);
|
||||||
} catch(IOException e) {
|
} catch(IOException e) {
|
||||||
log.info("position failed to start WebServer (IOException)");
|
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) {
|
public KzedMap(MapManager manager, World world, Debugger debugger) {
|
||||||
super(manager, world, debugger);
|
super(manager, world, debugger);
|
||||||
getDebugger().debug("Loading colors...");
|
|
||||||
if (colors == null) {
|
if (colors == null) {
|
||||||
getDebugger().debug("Loading colors2...");
|
|
||||||
colors = loadColorSet("colors.txt");
|
colors = loadColorSet("colors.txt");
|
||||||
}
|
}
|
||||||
renderers = new MapTileRenderer[] {
|
renderers = new MapTileRenderer[] {
|
||||||
@ -326,8 +324,10 @@ public class KzedMap extends Map {
|
|||||||
/* load colorset */
|
/* load colorset */
|
||||||
File cfile = new File(colorsetpath);
|
File cfile = new File(colorsetpath);
|
||||||
if (cfile.isFile()) {
|
if (cfile.isFile()) {
|
||||||
|
getDebugger().debug("Loading colors from '" + colorsetpath + "'...");
|
||||||
stream = new FileInputStream(cfile);
|
stream = new FileInputStream(cfile);
|
||||||
} else {
|
} else {
|
||||||
|
getDebugger().debug("Loading colors from jar...");
|
||||||
stream = KzedMap.class.getResourceAsStream("/colors.txt");
|
stream = KzedMap.class.getResourceAsStream("/colors.txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user