Solved Remove whole string line in .yml

Discussion in 'Plugin Development' started by Condolent, Jul 17, 2015.

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

    Condolent

    So I have a command that adds a users ID and then a value like this:
    Code:
    getMutes().set(UUID, string)
    Now I need to figure out how to remove this whole line with another command. I tried just using
    Code:
    getMutes().set(UUID, "");
    but I realized that only removes the value, not the actual string-name.

    Solutions?
     
    Last edited: Jul 17, 2015
  2. Offline

    teej107

    @Condolent is the Object returned by getMutes() a config?
     
  3. Offline

    Condolent

    @teej107 yep, there's no problem for example with adding it all. Neither removing anything, all I need is to figure out the way to remove a whole string, not just its value
     
  4. Offline

    teej107

  5. Offline

    DoggyCode™

    @Condolent

    Basically:

    Code:
    getMutes().set(UUID, null);
    
     
  6. Offline

    Condolent

    Yeah, did that and it fixed it all! Thanks boys, will absolutely be helpful in the future!
     
Thread Status:
Not open for further replies.

Share This Page