How do I get all "command"? example: Code:java for(String s : getConfig().getString("Commands") {getConfig().getList("Commands." + "s");} Config.yml Code: Commands: commnand1: - say 1 - say 2 commnand2: - say a - say b commnand3: - say 11 - say 11 commnand4: - say bb - say bb
use getConfigurrationSection("Commands").getKeys(false) this will return command1 through command4 (if this is what you are looking for)