Please Help give Golden apple

Discussion in 'Plugin Development' started by textr, Oct 16, 2020.

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

    textr

    Hello i need help help i want to do setname but something is not working for me



    if (u.getRefil() <= Config.LIMIT_REFILE) {
    refw = u.getRefil();
    u.removeRefil(refw);
    u.save();

    ChatUtil.giveItems(player1, new ItemStack[] { new ItemBuilder1(Material.GOLDEN_APPLE).setTitle("elo") refw, (short)0).build() });
    ChatUtil.sendMessage((CommandSender)player1, "&7[&aI&7] &7Wyplacono refile w ilosci &2" + refw);
    SchowekMenu.show(player1);
    return;
    }
     
  2. Offline

    KarimAKL

    @textr Where does the "ItemBuilder1" class come from? And why does "ChatUtil" have a "giveItems" method?
     
Thread Status:
Not open for further replies.

Share This Page