Posted January 7, 20214 yr Hi, im creating server side only mod and im looking into how to provide this mod with data that should be supplied by servers admin (supposedly cfg file). A lot of guides suggest to use Configuration class, but is seems it got deleted from forges library, how do i do it then? Should i do it myself and straight up access the file by a relative path or there is something else that i can do? in case you wonder what could "admin" provide, my mod requires access to sql database and i need a correct connection link for it. It might be that someone already had similar question (i cant find anything), if so, pls provide the forum link. Sorry for my bad english and thanks in advance.
January 7, 20214 yr Author 5 minutes ago, diesieben07 said: Forge uses Night-Config for TOML config files. You can see Forge's config configuration (hue hue) here: https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/common/ForgeConfig.java, it is registered here: https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/common/ForgeMod.java#L127-L129. Hm, okay, thanks! I'll try to do something like that
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.