Solved Confused

Discussion in 'Plugin Development' started by realclicks, Jun 15, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    realclicks

    The first two lines are fine, but the last three keep needing @ symbols after every . ?
    Code:
    ItemStack deathScythe = new ItemStack(Material.IRON_HOE);
    ItemMeta deathScytheMeta = deathScythe.getItemMeta();
    deathScytheMeta.setDisplayName(ChatColor.RED + "Death Scythe");
    deathScytheMeta.addEnchant(Enchantment.DAMAGE_ALL, 10, true);
    deathScythe.setItemMeta(deathScytheMeta);
     
  2. Offline

    KarimAKL

    @realclicks What exactly do you mean? How did you determine that is needed?
     
  3. Offline

    realclicks

  4. Offline

    Tango_

  5. Offline

    realclicks

  6. Offline

    timtower Administrator Administrator Moderator

    That is not possible with java.
    Make a field for the deathScyte, fill the values in the onEnable.
     
  7. Offline

    realclicks

    I knew i was doing something stupid, thanks for help lmao
     
Thread Status:
Not open for further replies.

Share This Page