Save maps.yml after maps were placed to avoid progress losing after a

server crash.
This commit is contained in:
SydMontague 2014-03-15 13:57:25 +01:00
parent 0037cc6735
commit 104d23d1dd

View File

@ -147,8 +147,11 @@ public class ImageMaps extends JavaPlugin implements Listener
if (!placeImage(e.getClickedBlock(), e.getBlockFace(), placing.get(e.getPlayer().getName())))
e.getPlayer().sendMessage("Can't place the image here!");
else
saveMaps();
placing.remove(e.getPlayer().getName());
}
private void setItemFrame(Block bb, BufferedImage image, BlockFace face, int x, int y, PlacingCacheEntry cache)