mirror of
https://github.com/SydMontague/ImageMaps.git
synced 2024-11-26 04:15:16 +01:00
Save maps.yml after maps were placed to avoid progress losing after a
server crash.
This commit is contained in:
parent
0037cc6735
commit
104d23d1dd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user