Events should be present tense, not paste tense.

This commit is contained in:
Erik Broes
2011-01-15 21:26:05 +01:00
parent 2184d240db
commit 8c8f53fd44
7 changed files with 24 additions and 24 deletions

View File

@@ -6,7 +6,7 @@ import org.bukkit.craftbukkit.CraftBlock;
import org.bukkit.craftbukkit.CraftItemStack;
import org.bukkit.craftbukkit.CraftPlayer;
import org.bukkit.event.Event.Type;
import org.bukkit.event.block.BlockPlacedEvent;
import org.bukkit.event.block.BlockPlaceEvent;
// CraftBukkit end
public class ItemBlock extends Item {
@@ -81,7 +81,7 @@ public class ItemBlock extends Item {
// CraftBukkit hardcoded Spawn distance for now
boolean canBuild = distanceFromSpawn > 16 || thePlayer.isOp();
BlockPlacedEvent bpe = new BlockPlacedEvent(Type.BLOCK_PLACED, placedBlock, blockClicked, itemInHand, thePlayer, canBuild);
BlockPlaceEvent bpe = new BlockPlaceEvent(Type.BLOCK_PLACED, placedBlock, blockClicked, itemInHand, thePlayer, canBuild);
((WorldServer) world).getServer().getPluginManager().callEvent(bpe);
if (bpe.isCancelled() || !bpe.canBuild()) {