How to get Item for config

Discussion in 'Spigot Plugin Development' started by Sad_Man, Sep 11, 2019.

Thread Status:
Not open for further replies.
  1. solved
    #1 Sad_Man, Sep 11, 2019
    Last edited: Sep 22, 2019
  2. Remove the . after Items in the getConfigurationSection("") bit

    You also need to put the data type before your variables, so It would look like this:
    Code (Java):
    String itemId = /* code goes here */
    List<String> itemLore = /* code goes here */
    int itemFoodLevel = /* code goes here */
    etc. etc.
  3. By learning Java? OOP belongs to basic Java and I know you have no clue about it when I see your code. That makes it for me and others hard to help you. You should delete your complete code, follow any Java tutorial on the internet (there are thousands...) and recreate it.

    • Friendly Friendly x 1
Thread Status:
Not open for further replies.