Proposal to be more explicit in naming of ModConfig.Type #1786
Labels
1.21.4
Targeted at Minecraft 1.21.4
enhancement
New (or improvement to existing) feature or request
request for comments
For gathering opinions on some topic or subject
Description of issue:
Currently as of writing this
ModConfig.Type
has the following values:CLIENT
COMMON
SERVER
STARTUP
They all are different but similar in how they work but one is extra special and that is
SERVER
it on connection of a client the server will read all server configs and send them to the client. While this is helpful this can also lead to issues where if a developer does not know that theSERVER
config type is automatically synced they could unintentionally leak information such as passwords (this has been seen in production) as such I propose the following.Proposal:
With the issue above described I think that changing the name of the type to better represent what it does explicitly would be good.
Changing the name to something along the lines of
SERVER_SYNCED
would be best and possibly making 2 separate types one that is synced and one that isnt would probably be even better asSERVER
type still has the property that its per world/server and not global.The text was updated successfully, but these errors were encountered: