Im trying to add an array of players to my configuration file, Can normal string arrays be used or can this not be done?
I think configurate won’t accept arrays but you can use List
instead.
Ok ill try lists ill let you know if i get it working
I managed to create a list and write it to the config file but how can I retrieve the list after. I tried using .getNode(“players”).getList() but i have no clue what the parameters should be?
config.getNode("players").getChildrenList().stream().map(ConfigurationNode::getString).collect(Collectors.toList())
config.getNode("players").getList(TypeToken.of(String.class))
1 Like
lolwut
1 Like