RegenBlock beta 5.4

Details

  • Filename
    RegenBlock.jar
  • Uploaded by
  • Uploaded
    Feb 18, 2013
  • Size
    89.46 KB
  • Downloads
    507
  • MD5
    f89d486e5c12809b86957c66414ad906

Supported Bukkit Versions

  • CB 1.4.7-R1.0

Changelog

Updated API a bit. Method to restore a block is available right at the RegenBlock main class level.

rb.regenBlock(location, material, data, player, true) - For BlockBreakEvent simulation
rb.regenBlock(location, Material.AIR, (byte) 0, player, false) - For BlockPlaceEvent simulation (can pass anything for block type if needed)

public void regenBlock(Location location, Material material, byte data, Player player, Boolean isBreakEvent)
location - block's location
material - what material block should be set to once restored
data - data value for the restored block
player - player that broke/placed the block
isBreakEvent - test if this is a BlockBreak of BlockPlace event.