Question ConfigurationSection.getValues() always returns an empty map

karapuzz

New member
Jan 6, 2025
1
0
1
If i have the following config.yml:
YAML:
map:
  some_key: value
  some_other_key: value
And i execute config.getConfigurationSection("map")?.getValues(false), it returns an empty map.
Just as getKeys(false) also returns an empty set.

However, if i run config.getConfigurationSection("map")?.get("some_key"), i get "value" back.
^^ This is obviously not okay, since the "some_key" key is defined by the user (the server admin)
Why is this happening? Is it a bug in Paper or am I doing something wrong? I'm a total noob at plugin development and I'm not even sure if it's the right forum, but still
 
Version Output
This server is running Paper version 1.21.1-132-ver/1.21.1@b48403b (2024-11-21T10:14:27Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)