Skip to content

ID Replacing doesn't work until any player discovers legitimate copy of the map specified in the configuration. #3

@TwinkNet

Description

@TwinkNet

When replace_with_id_when_possible (replace_with_id in RC-2026.01.25) is set to a map ID, the server would use the default obfuscation method (solid colour or random noise) if the map in replace_with_id wasn't in the first player to join the server's inventory. This is quite problematic because it looks like the plugin is just ignoring the configuration.

In RC-2026.01.26, this will be has been alleviated by properly handling this condition and simply using the default obfuscation method until the preferred Map becomes available, such as when a player discovers the map. However, this behaviour is NOT ideal, and looks extremely tacky.

After brainstorming for approximately 2 hours, I've decided that to properly fix this issue without doing any hacky NMS things or spawning in fake players to render maps to, we need to simply serialise the rgb(int) array into a file whenever the map is discovered so that it can be restored across reboots. in most cases, the operator of the server will unintentionally populate this file during this plugin's setup.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions