This commit is contained in:
befaci03 2026-01-14 17:30:49 +01:00
parent 6082acd36d
commit a4e9f9cd5a

View File

@ -95,9 +95,7 @@ public final class Main extends JavaPlugin implements Listener {
event.getDrops().removeIf(item -> { event.getDrops().removeIf(item -> {
Material type = item.getType(); Material type = item.getType();
if (type.name().startsWith("IRON_") || type == Material.BOW || type == Material.FISHING_ROD) return true;
if (type.name().startsWith("IRON_")) return true;
return type == Material.BLAZE_ROD && return type == Material.BLAZE_ROD &&
item.hasItemMeta() && item.hasItemMeta() &&
item.getItemMeta().hasDisplayName() && item.getItemMeta().hasDisplayName() &&
@ -123,6 +121,7 @@ public final class Main extends JavaPlugin implements Listener {
inv.addItem(new ItemStack(Material.IRON_SWORD), new ItemStack(Material.FISHING_ROD), new ItemStack(Material.BOW), new ItemStack(Material.ARROW, 16), new ItemStack(Material.GOLDEN_APPLE, 2)); inv.addItem(new ItemStack(Material.IRON_SWORD), new ItemStack(Material.FISHING_ROD), new ItemStack(Material.BOW), new ItemStack(Material.ARROW, 16), new ItemStack(Material.GOLDEN_APPLE, 2));
player.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, Integer.MAX_VALUE, 0, true, false)); player.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, Integer.MAX_VALUE, 0, true, false));
player.addPotionEffect(new PotionEffect(PotionEffectType.SATURATION, Integer.MAX_VALUE, 0, true, false));
player.setHealth(20.0); player.setHealth(20.0);
player.setFoodLevel(20); player.setFoodLevel(20);