Closed Khotul closed 3 months ago
This error should be fixed with CustomCarfting v4.16.11. In fact that update was released just for that issue alone. I also noticed that your WolfyUtils is a bit out of date too. I'd recommend to get the latest beta version for that one.
You can find the updates for both plugins on Modrinth.
What happened?
Custom Crafting 4.16.9.1 WolfyUtils 4.17-beta.1 paper-1.18.2 OpenJDK 17 Windows 10
I'm migrating my local server I made 2 years ago from 1.17.1 to 1.18.2. I updated CustomCrafting from an (at least) 2 year old version, however it didn't work out of the box, as the plugin crashed on server startup because of
java.lang.UnsupportedOperationException: Unsupported copy option
I've looked at the relevant code and it seems that this line is what triggers the error
Files.move(recipeBookFileJson.toPath(), recipeBookFile.toPath(), StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.COPY_ATTRIBUTES);
I've solved this manually on my end by renaming every recipe in my folder from "*.json" to "*.conf" which worked out and the plugin is working properly now. Still I opened this issue to let the developer(s) about the error.
How can the bug be reproduced?
Create a server on 1.17.1 with a 2 year old version of CustomCrafting, create some recipes, migrate the server to 1.18.2 with a newer version of the plugin.
Expected Behaviour?
Plugin should rename *.json recipe files to *.conf without crashing.
Plugin version
Custom Crafting 4.16.9.1, WolfyUtils 4.17-beta.1
Server software
Paper 1.18.2
Relevant log output
Submit issue