Jump to content

Where is the sever.properties file parsed at?


jredfox

Recommended Posts

DedicatedServer#init creates an instance of PropertyManager to parse the server.properties file and stores it in the DedicatedServer#settings field. This is the first method called when the server thread starts up.

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.

Link to comment
Share on other sites

33 minutes ago, Choonster said:

DedicatedServer#init creates an instance of PropertyManager to parse the server.properties file and stores it in the DedicatedServer#settings field. This is the first method called when the server thread starts up.

is this the same for banned-ips banned-players ops and whitelist? I need to know because I am making a mod for lan-essentials which will create these files per world on save and parse them on startup. 

I noticed filling ops and then logging out of the world makes it save to the disk on a non dedicated server if open to lan was open. Is there a way to just clear the properties before written to the disk and before I clear them save them to the root world dir as well?

Link to comment
Share on other sites

45 minutes ago, jredfox said:

is this the same for banned-ips banned-players ops and whitelist? I need to know because I am making a mod for lan-essentials which will create these files per world on save and parse them on startup. 

I noticed filling ops and then logging out of the world makes it save to the disk on a non dedicated server if open to lan was open. Is there a way to just clear the properties before written to the disk and before I clear them save them to the root world dir as well?

 

Those files are handled by the UserListX objects in the server's PlayerList instance.

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.

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.