Added dummy getPlayer() to BlockBrokenEvent and BlockPlacedEvent in order to get WorldEdit to compile.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
Bukkit/Spigot 2011-01-03 12:02:42 -08:00
parent 089d7906b9
commit c8ade7e5bb
2 changed files with 12 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -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
@ -18,6 +20,10 @@ public class BlockPlacedEvent extends BlockEvent implements Cancellable {
cancel = false;
}
public Player getPlayer() {
return player;
}
public boolean isCancelled() {
// TODO Auto-generated method stub
return cancel;