No exception handling for PlotSquared unable to paste schematic #4460
Labels
Approved
A project maintainer or developer has reproduced this issue
Bug
Something isn't working
Enhancement
New feature or request
Server Implementation
Paper
Server Version
1.20.4
Describe the bug
There is no error handling or log output when a schematic cannot be pasted in PlotSquared (e.g. using /plot backup or /plot schematic).
In Discord, Pierre referenced these two areas of code:
https://github.com/IntellectualSites/PlotSquared/blob/main/Core/src/main/java/com/plotsquared/core/command/Backup.java#L340
https://github.com/IntellectualSites/PlotSquared/blob/main/Core/src/main/java/com/plotsquared/core/backup/PlayerBackupProfile.java#L203
This causes no error or any other output in console or logs when PlotSquared fails to paste a schematic. I only receive the error message "The backup could not be restored: Failed to paste the schematic."
To Reproduce
Expected behaviour
No backup is restored despite backups being enabled, a backup present in the /plugins/PlotSquared/backups folder, and the schematic otherwise works when manually uploaded. I have not tested but may also affect paste-on-claim.
Screenshots / Videos
No response
Error log (if applicable)
No response
Plot Debugpaste
https://athion.net/ISPaster/paste/view/18bc3af74e1f4306bcc1acea45ea1820
PlotSquared Version
7.3.8-Premium
Checklist
Anything else?
I am using an older version of FAWE (build 743) because I haven't updated to java 21 yet. Not sure if this is related.
The text was updated successfully, but these errors were encountered: