If i have the following config.yml:
And i execute
Just as
However, if i run
^^ 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
YAML:
map:
some_key: value
some_other_key: value
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)