diff options
author | EvilSeph <evilseph@gmail.com> | 2011-08-12 22:47:47 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-08-12 23:06:02 -0400 |
commit | 748a6288e418ea8d52a287d55cc591ac1f0a536a (patch) | |
tree | e4bc6d4090f58bcc2807278f63bd8d8da81d997c /src/main/java/net/minecraft/server/ItemWorldMap.java | |
parent | e6876a97da07a7218c177f4ddf61c277929bc759 (diff) | |
download | craftbukkit-748a6288e418ea8d52a287d55cc591ac1f0a536a.tar craftbukkit-748a6288e418ea8d52a287d55cc591ac1f0a536a.tar.gz craftbukkit-748a6288e418ea8d52a287d55cc591ac1f0a536a.tar.lz craftbukkit-748a6288e418ea8d52a287d55cc591ac1f0a536a.tar.xz craftbukkit-748a6288e418ea8d52a287d55cc591ac1f0a536a.zip |
Added API for manipulating map items. Thanks SpaceManiac, codename_B, sk89q and dested!
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemWorldMap.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemWorldMap.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ItemWorldMap.java b/src/main/java/net/minecraft/server/ItemWorldMap.java index be54e2d7..9ec729c2 100644 --- a/src/main/java/net/minecraft/server/ItemWorldMap.java +++ b/src/main/java/net/minecraft/server/ItemWorldMap.java @@ -1,5 +1,10 @@ package net.minecraft.server; +// CraftBukkit start +import org.bukkit.Bukkit; +import org.bukkit.event.server.MapInitializeEvent; +// CraftBukkit end + public class ItemWorldMap extends ItemWorldMapBase { protected ItemWorldMap(int i) { @@ -22,6 +27,11 @@ public class ItemWorldMap extends ItemWorldMapBase { worldmap.map = (byte) world.worldProvider.dimension; worldmap.a(); world.a(s, (WorldMapBase) worldmap); + + // CraftBukkit start + MapInitializeEvent event = new MapInitializeEvent(worldmap.mapView); + Bukkit.getServer().getPluginManager().callEvent(event); + // CraftBukkit end } return worldmap; |