Insane96MCP Posted March 10, 2018 Posted March 10, 2018 How I can create nested categories in the config file E.g. general{ I:property=1 nested_general{ I:property_in_nested=2 } } Quote
Choonster Posted March 10, 2018 Posted March 10, 2018 (edited) Are you using the @Config annotations or are you using the Configuration class? Edited March 10, 2018 by Choonster Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Insane96MCP Posted March 10, 2018 Author Posted March 10, 2018 4 minutes ago, Choonster said: Are you using the @Config annotations or are you using the Configuration class? Configuration class Quote
Choonster Posted March 10, 2018 Posted March 10, 2018 3 minutes ago, Insane96MCP said: Configuration class You can separate category names with periods ( . ) when you call Configuration#get to create nested categories, e.g. config.get("general.nested_general", "property_in_nested", 2) 1 Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.