/schem list throws NoSuchFileException if per-player schems are enabled but UUID folder is missing
AnttiMK opened this issue ยท 2 comments
Server Implementation
Paper
Server Version
1.17.1
Describe the bug
If a player executes /schem list when
- per-player schematics are enabled but the player hasn't created a schematic (= /schematics/UUID/ folder is missing), and
- schematics exist in the parent schematic directory
/FAWE/schematics/
,
a NoSuchFileException
is thrown for every file in the parent schematic directory. The schematics are listed in-game, but are shown as empty (0.0 kb).
This happens because FAWE is using the per-player folder as the current working directory to access the parent's files (/UUID/../
). Since the folder doesn't exist, errors are thrown.
To Reproduce
- Have some schematics in the root of the schematics folder
- Enable per-player schematics
- Make sure the UUID folder for the player executing the command is missing
- Execute
/schem list
- Observe errors thrown in the console for every schematic in the root folder
Expected behaviour
- No errors thrown
- Files in the root directory to be shown normally
Screenshots / Videos
No response
Error log (if applicable)
No response
Fawe Debugpaste
https://athion.net/ISPaster/paste/view/034bc99370164a83b6093d6ea66a8f5f
Fawe Version
FastAsyncWorldEdit version 2.1.1-SNAPSHOT-134;465c81d
Checklist
- I have included a Fawe debugpaste.
- I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.
Anything else?
No response
I think it is a duplicate of #1235
Duplicate of #1235