get the lenght of a config

Discussion in 'Plugin Development' started by jaimetruman, Oct 24, 2019.

  1. Offline


    Hello i have a plugin which has a simple config. i want to get the lenght of it and i cant find out the way to do that :(. here is the config. there would be 4 of lenght. if someone can help i would be very happy

    JaimeTruman: 750
    Sky159: 100
    walo00: 0
    MOLONXX7: 12

    thnks for reading :))))
  2. Offline


  3. Online

    timtower Moderator Moderator

    @jaimetruman Get the ConfigurationSection, use getKeys(false), check the length of the result.
    robertlit likes this.

Share This Page