Get the key not the whole value

This commit is contained in:
Teriuihi 2021-09-20 03:29:25 +02:00
parent e690da0731
commit 8b42cfea43

View File

@ -219,7 +219,7 @@ public class BotConfig {
"update-to-discord: true\n\t\t" +
"announcement: <player> got example rank!");
node.getChildrenMap().forEach((key, value) -> {
String internalName = value.getString();
String internalName = key.toString();
long id = value.getNode("role-id").getLong(-1);
String luckpermsName = value.getNode("luckperms-name").getString("example");
String display_name = value.getNode("display-name").getString("Example");