Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sever Property file generation seems to be incorrectly escaping special characters #437

Open
alexchomiak opened this issue Jul 17, 2024 · 2 comments

Comments

@alexchomiak
Copy link

alexchomiak commented Jul 17, 2024

When configuring my docker-compose configuration with the following environment property:

LEVEL_TYPE: 'gardenofglass:gardenofglass.'

The generated server.properties file sets the level-type value as follows:
level-type=gardenofglass\:gardenofglass.

It seems to be escaping the semicolon, but not removing the forward slash /.

This is causing world generation to behave incorrectly. Trying to manually correct the value just has this overwritten with the correct one. (even if omitting the environment variable)

@itzg
Copy link
Owner

itzg commented Jul 18, 2024

That is standard java properties file behavior:

https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Properties.html#store(java.io.Writer,java.lang.String)

Minecraft wiki also states that colon must be escaped:

https://minecraft.wiki/w/Server.properties#level-type

@itzg
Copy link
Owner

itzg commented Jul 18, 2024

Are you sure that trailing period isn't the problem?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants