gecko10000 2021-07-23 21:01:40 -07:00 committed by GitHub
parent 2044c73f05
commit 21fed6ebfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,7 @@ public class ObsidianScoopingListener extends FlagListener {
user.sendMessage("protection.flags.OBSIDIAN_SCOOPING.scooping"); user.sendMessage("protection.flags.OBSIDIAN_SCOOPING.scooping");
player.getWorld().playSound(player.getLocation(), Sound.ITEM_BUCKET_FILL_LAVA, 1F, 1F); player.getWorld().playSound(player.getLocation(), Sound.ITEM_BUCKET_FILL_LAVA, 1F, 1F);
b.setType(Material.AIR); b.setType(Material.AIR);
e.setCancelled(true);
Bukkit.getScheduler().runTask(BentoBox.getInstance(), () -> givePlayerLava(player, bucket)); Bukkit.getScheduler().runTask(BentoBox.getInstance(), () -> givePlayerLava(player, bucket));
return true; return true;
} }