Jump to content

Server side only config file


aznkv

Recommended Posts

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.

 

Link to comment
Share on other sites

5 minutes ago, diesieben07 said:

Hm, okay, thanks! I'll try to do something like that

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.