Start worlds.txt edit commands - add /dmap worldlist and /dmap worldset

This commit is contained in:
Mike Primm 2012-02-05 15:53:24 -06:00
parent 3b19d11694
commit 86c7dee750
2 changed files with 23 additions and 0 deletions

View file

@ -240,6 +240,14 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
public void resetCacheStats() {
sscache.resetStats();
}
@Override
public DynmapWorld getWorldByName(String wname) {
World w = getServer().getWorld(wname); /* FInd world */
if(w != null) {
return new BukkitWorld(w);
}
return null;
}
}
/**
* Player access abstraction class