diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-03 12:02:42 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-03 12:02:42 -0800 |
commit | c0983ce3a8eb0ac16a0c1d3c5d28e855b9da344c (patch) | |
tree | aab00fe3c20a81ca367fc4e740e29137ed3f364c /src/main/java | |
parent | 6c18095e54eeaf14c29a1e89a2d6120ae5afef3e (diff) | |
download | bukkit-c0983ce3a8eb0ac16a0c1d3c5d28e855b9da344c.tar bukkit-c0983ce3a8eb0ac16a0c1d3c5d28e855b9da344c.tar.gz bukkit-c0983ce3a8eb0ac16a0c1d3c5d28e855b9da344c.tar.lz bukkit-c0983ce3a8eb0ac16a0c1d3c5d28e855b9da344c.tar.xz bukkit-c0983ce3a8eb0ac16a0c1d3c5d28e855b9da344c.zip |
Added dummy getPlayer() to BlockBrokenEvent and BlockPlacedEvent in order to get WorldEdit to compile.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockBrokenEvent.java | 6 | ||||
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockPlacedEvent.java | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java b/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java index 03615d7a..ec064865 100644 --- a/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockBrokenEvent.java @@ -1,13 +1,19 @@ package org.bukkit.event.block; import org.bukkit.Block; +import org.bukkit.Player; /** * Not implemented yet */ public class BlockBrokenEvent extends BlockEvent { + private Player player; public BlockBrokenEvent(Type type, Block block ) { super(type, block); } + + public Player getPlayer() { + return player; + } } diff --git a/src/main/java/org/bukkit/event/block/BlockPlacedEvent.java b/src/main/java/org/bukkit/event/block/BlockPlacedEvent.java index a5ec3299..030a2dd9 100644 --- a/src/main/java/org/bukkit/event/block/BlockPlacedEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockPlacedEvent.java @@ -1,6 +1,7 @@ package org.bukkit.event.block; import org.bukkit.Block; +import org.bukkit.Player; import org.bukkit.event.Cancellable; /** @@ -8,6 +9,7 @@ import org.bukkit.event.Cancellable; */ public class BlockPlacedEvent extends BlockEvent implements Cancellable { private boolean cancel; + private Player player; /** * @param type @@ -17,6 +19,10 @@ public class BlockPlacedEvent extends BlockEvent implements Cancellable { super(type, theBlock); cancel = false; } + + public Player getPlayer() { + return player; + } public boolean isCancelled() { // TODO Auto-generated method stub |