if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
loc = block.getRelative(event.getBlockFace()).getLocation();
switch (player.getItemInHand().getType()) {
case FLINT_AND_STEEL:
DataManager.addEntry(new SimpleRollbackEntry(player, DataType.FLINT_AND_STEEL, loc, ""));
break;
case LAVA_BUCKET:
DataManager.addEntry(new SimpleRollbackEntry(player, DataType.LAVA_BUCKET, loc, ""));
break;
case WATER_BUCKET:
DataManager.addEntry(new SimpleRollbackEntry(player, DataType.WATER_BUCKET, loc, ""));
break;
}
}
}