diff --git a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java index 8ca9d922..a34f6a85 100644 --- a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java +++ b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java @@ -196,6 +196,15 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI { private int chunks_in_cur_tick = 0; private long cur_tick; + @Override + public int getBlockIDAt(String wname, int x, int y, int z) { + World w = getServer().getWorld(wname); + if((w != null) && w.isChunkLoaded(x >> 4, z >> 4)) { + return w.getBlockTypeIdAt(x, y, z); + } + return -1; + } + @Override public void scheduleServerTask(Runnable run, long delay) { getServer().getScheduler().scheduleSyncDelayedTask(DynmapPlugin.this, run, delay);