mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 11:15:57 -07:00
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:
@@ -1,13 +1,19 @@
|
|||||||
package org.bukkit.event.block;
|
package org.bukkit.event.block;
|
||||||
|
|
||||||
import org.bukkit.Block;
|
import org.bukkit.Block;
|
||||||
|
import org.bukkit.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not implemented yet
|
* Not implemented yet
|
||||||
*/
|
*/
|
||||||
public class BlockBrokenEvent extends BlockEvent {
|
public class BlockBrokenEvent extends BlockEvent {
|
||||||
|
private Player player;
|
||||||
|
|
||||||
public BlockBrokenEvent(Type type, Block block ) {
|
public BlockBrokenEvent(Type type, Block block ) {
|
||||||
super(type, block);
|
super(type, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Player getPlayer() {
|
||||||
|
return player;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
package org.bukkit.event.block;
|
package org.bukkit.event.block;
|
||||||
|
|
||||||
import org.bukkit.Block;
|
import org.bukkit.Block;
|
||||||
|
import org.bukkit.Player;
|
||||||
import org.bukkit.event.Cancellable;
|
import org.bukkit.event.Cancellable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -8,6 +9,7 @@ import org.bukkit.event.Cancellable;
|
|||||||
*/
|
*/
|
||||||
public class BlockPlacedEvent extends BlockEvent implements Cancellable {
|
public class BlockPlacedEvent extends BlockEvent implements Cancellable {
|
||||||
private boolean cancel;
|
private boolean cancel;
|
||||||
|
private Player player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param type
|
* @param type
|
||||||
@@ -17,6 +19,10 @@ public class BlockPlacedEvent extends BlockEvent implements Cancellable {
|
|||||||
super(type, theBlock);
|
super(type, theBlock);
|
||||||
cancel = false;
|
cancel = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Player getPlayer() {
|
||||||
|
return player;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
Reference in New Issue
Block a user