Solved Question about setLore()

Discussion in 'Plugin Development' started by ThePandaPlayer, Aug 31, 2017.

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

    ThePandaPlayer

    I am making a GUI inventory for a server. Now, I need to loop through all of the potion effects a player has. No big deal, but the setLore() for ItemMeta takes a List<String> instead of just a String. Do different entries (like an array) mean new lines in the lore?
     
  2. Online

    timtower Administrator Administrator Moderator

    @ThePandaPlayer It doesn't take anything else besides a list...
    Every String in the list will be a line in the lore.
     
  3. Offline

    ThePandaPlayer

    Okay nice. Now I don't have to put spacing in between the effects...
     
Thread Status:
Not open for further replies.

Share This Page