Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by TheGamerPlayz, May 29, 2016.
How would i remove a single entry from a StringList in a config?
List<String> list = plugin.getConfig().getStringList("Path");
something like this ?
I thought about that, but wouldn't it just add everything twice? Its not removing it from the config as much as removing from a copy of the config, So maybe if I set it to null first?
Ok i figured out I just had to get all entries into a list then set the config's list to null remove what i need to and then add it
blue = teams.getStringList("Teams.Blue");
well I don't get it but since everything's fine mark it as solved if there's more problem what is it ?
I am about to close it I was just testing the plugin fully to be sure that this solution is actually solved and not going to confuse others and take up more forums space later =)