FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

/schem list throws NoSuchFileException if per-player schems are enabled but UUID folder is missing

AnttiMK opened this issue ยท 2 comments

commented

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

If a player executes /schem list when

  1. per-player schematics are enabled but the player hasn't created a schematic (= /schematics/UUID/ folder is missing), and
  2. 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

  1. Have some schematics in the root of the schematics folder
  2. Enable per-player schematics
  3. Make sure the UUID folder for the player executing the command is missing
  4. Execute /schem list
  5. 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

Anything else?

No response

commented

I think it is a duplicate of #1235

commented

Duplicate of #1235