Starts work on making the commands more modern

Adds classes for all commands
Implements command class and tab completer for the give command
Performs more code cleanup
This commit is contained in:
2021-08-30 17:03:58 +02:00
parent 6efbd377ee
commit 504ef09192
19 changed files with 598 additions and 142 deletions

View File

@ -3,18 +3,24 @@ version: '${project.version}'
main: net.knarcraft.bookswithoutborders.BooksWithoutBorders
api-version: 1.17
prefix: Books Without Borders
authors: [ EpicKnarvik97, AkiraAkiba ]
authors: [EpicKnarvik97, AkiraAkiba]
description: A continuation of the original Books Without Borders
softdepend:
- Vault
softdepend: [Vault]
website: ????
dev-url: https://git.knarcraft.net/EpicKnarvik97/Books-Without-Borders
commands:
BooksWithoutBorders:
bookswithoutborders:
description: Lists Books Without Borders's commands and uses.
aliases:
- bwb
usage: /<command> - Used to see Books Without Borders commands
aliases: [bwb]
usage: /<command>
give:
description: Gives the held book to another player
usage: /<command> [file name or number] <playername> [# of copies (num)] [signed (true/false)]
permission: bookswithoutborders.give
decrypt:
description: Encrypts the held book
usage: /<command> <password>
permission: bookswithoutborders.decrypt
permissions:
bookswithoutborders.admin:
description: Grants all permissions