Solved How to delete config path

Discussion in 'Spigot Plugin Development' started by iO_5, Jul 5, 2018.

  1. My English is not good. Sorry.

    This does not work: getConfig.remove....
    I didn't find the right way.
    I want to delete "all.b".

    Make the first one the second:
    1
    Code (configyml-one (Unknown Language)):

    all:
      a:
        name: a
        number: 2
      b:
        name: abcde
        number: 1
     
    2
    Code (configyml-two (Unknown Language)):

    all:
      a:
        name: a
        number: 2
     
     
  2. Benz56

    Moderator Supporter

    Code (Java):
    getConfig().set(“all.b”, null);
     
    • Agree Agree x 1
  3. OMG, I am sorry that I did not try.
    I thought it was like this.
    Team:
    a: null

    In fact this is correct.