Fixes and improves book saving

Removes redundancy
Fixes broken duplicate checking
Moves the save function to its own class
This commit is contained in:
2021-08-31 15:15:48 +02:00
parent 9d64cd787d
commit 4a9c678bff
8 changed files with 167 additions and 124 deletions

View File

@ -53,6 +53,10 @@ commands:
description: Saves the held book to the public books folder
usage: /<command> [duplicate (true/false)]
permission: bookswithoutborders.savepublic
save:
description: Saves the held book to the holding player's folder
usage: /<command>
permission: bookswithoutborders.save
permissions:
bookswithoutborders.admin:
description: Grants all permissions