Skip to content

Language file version mismatch on every startup (en_US.json) causing FileSystemException on Windows #96

@lvdxrk

Description

@lvdxrk

Environment

  • ClickVillagers version: 1.6.2
  • Server: Paper 26.1.2 (build 68)
  • OS: Windows 11
  • Java: 25

Issue

On a fresh installation, ClickVillagers starts normally and generates plugins/ClickVillagers/lang/en_US.json.

However, on every subsequent server startup, the plugin reports a version mismatch for en_US.json and attempts to redeploy the file. The redeploy fails with:

java.nio.file.FileSystemException: plugins\ClickVillagers\lang\en_US.json: The process cannot access the file because it is being used by another process

Steps to Reproduce

  1. Install ClickVillagers 1.6.2 on a fresh server.
  2. Start the server.
  3. Verify that plugins/ClickVillagers/lang/en_US.json is generated.
  4. Stop the server.
  5. Start the server again.

Expected Behavior

The language file should be considered up to date after the first startup and should not need to be redeployed on every restart.

Actual Behavior

Every startup reports:

[Configured] Version mismatch detected. Deploying from resource directory for 'en_US'...

followed by a FileSystemException when attempting to replace en_US.json.

Additional Information

  • The plugin still enables successfully and appears to function normally.
  • en_US.json is not read-only.
  • The server folder is not inside OneDrive.
  • No editor or external process is holding the file open.
  • Deleting the lang folder allows the next startup to complete without errors, but the same error returns on the following restart.
  • The generated en_US.json contains "version": 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions