Hi ! I'm trying to use the Map API of bukkit. I'm testing something : I want that if I write something like /revealmap, all the transparent blocks in the map are changed to what they should look like. How do I do this ? I found no tutorial about it Thanks I can't figure out how I can reveal the map... This should be easy ! http://yerwol.co.uk/bukkitdoxy/html/d7/d5e/classnet_1_1minecraft_1_1server_1_1WorldMap.htm https://github.com/Bukkit/CraftBukk.../org/bukkit/craftbukkit/map/CraftMapView.java Code:java public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("map")) { if (sender.hasPermission("itsn3wMap.base") || sender.isOp()) { if (!(sender instanceof Player)) { sender.sendMessage(HEADER + "In Game only command"); return false; } else { Player player = (Player) sender; if (player.getItemInHand().getType().equals(Material.MAP)) { MapView map = getServer().getMap(player.getItemInHand().getDurability()); map.setCenterX((int) player.getLocation().getX()); map.setCenterZ((int) player.getLocation().getZ()); map.setScale(Scale.FARTHEST); /* Reveal the map here ! //*/ player.sendMap(map); return true; } else { player.sendMessage("No map held"); return false; } } } else { sender.sendMessage(HEADER + "No permission !"); return false; } } else { return false; } } Ok so this is just impossible. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You need to write your own MapRenderer wich populates the map. The map is just a canvas where you can draw on. It's not a prerenderd map with just some "fog of war" over it. It redraws the blocks when you move. PS: I had a lot of trouble figuring the map out. PM me if you need a kick-start.