Hey guys, So I'm working on a config command for a minigame plugin and one of the commands will show how the game is configured. Just wondering if there is an easy way to have a configurationsection made into a string/string list like the one above.
u cann use ArrayLists to u Fileconfiguration example Code (Text): List<String> list = new ArrayList(); list.add("line1"); list.add("line2"); cfg.addDefault("ABC.TEST.COMMAND", list);
I think he wants to take the text in the file and print that in chat, not add a list to the file. Adding to what I mentioned before, here are some examples: https://www.journaldev.com/709/java-read-file-line-by-line
No Loop through your configuration section and getting the values and use a string builder. I'm gonna post a code later.