Adds aliases to all commands

This commit is contained in:
2025-08-17 16:07:39 +02:00
parent 4501156087
commit cd9255c97a
2 changed files with 123 additions and 64 deletions

View File

@@ -11,106 +11,157 @@ dev-url: https://git.knarcraft.net/EpicKnarvik97/Books-Without-Borders
commands:
bookswithoutborders:
description: Lists Books Without Borders's commands and uses.
aliases: [ bwb ]
aliases:
- bwb
usage: /<command>
decryptbook:
description: Decrypts the book the player is holding. "key" is required and MUST be IDENTICAL to the key used to encrypt held book
aliases:
- bwbdecrypt
usage: /<command> <key>
permission: bookswithoutborders.decrypt
formatbook:
description: Replaces color/formatting codes in a written book with formatted text
aliases:
- bwbformat
usage: /<command>
permission: bookswithoutborders.format
givebook:
description: Gives the selected player a book from your personal directory
aliases:
- bwbgive
usage: /<command> <file name or number> <playername> [# of copies (num)] [signed (true/false)]
permission: bookswithoutborders.give
givepublicbook:
description: Same as givebook, but uses books from the public directory
aliases:
- bwbgivep
usage: /<command> <file name or number> <playername> [# of copies (num)] [signed (true/false)]
permission: bookswithoutborders.givepublic
groupencryptbook:
description: Encrypts book so that only players with the bookswithoutborders.decrypt.<group name> permission may decrypt the book by holding and left clicking the book
aliases:
- bwbgencrypt
usage: /<command> <group name> <key> [encryption style]
permission: bookswithoutborders.groupencrypt
deletebook:
description: Deletes the specified file in the player's directory
aliases:
- bwbdelete
usage: /<command> <file name or number>
permission: bookswithoutborders.delete
deletepublicbook:
description: Same as deletebook, but deletes files in the public directory
aliases:
- bwbdeletep
usage: /<command> <file name of number>
permission: bookswithoutborders.admin
copybook:
description: Copies the book the player is holding
aliases:
- bwbcopy
usage: /<command> <# of copies>
permission: bookswithoutborders.copy
clearbook:
description: Removes all text from the book the player is holding
aliases:
- bwbclear
usage: /<command>
permission: bookswithoutborders.clear
unsignbook:
description: Un-signs the book the player is holding
aliases:
- bwbunsign
usage: /<command>
permission: bookswithoutborders.unsign
encryptbook:
description: Encrypts the book the player is holding. "key" is required and can be any phrase or number excluding spaces. "style" is not required. Possible values are "DNA" or ""
aliases:
- bwbencrypt
usage: /<command> <key> [encryption style]
permission: bookswithoutborders.encrypt
setbookgeneration:
description: Sets the generation of the held book
aliases:
- bwbgeneration
usage: /<command> <generation>
permission: bookswithoutborders.setgeneration
setbookprice:
description: Sets the per-book-price to create a book via commands. If "Item", the item in the player's hand in the amount of [quantity] will be the price. If "Eco", a Vault based economy will be used for price. If neither <Item/Eco> or <quantity> are specified, the current price to create books will be removed.
aliases:
- bwbprice
usage: /<command> <item/eco> <quantity>
permission: bookswithoutborders.setbookprice
setlore:
description: Sets the lore of the item the player is holding. Insert the lore_line_separator character to force a new line ("~" by default)
aliases:
- bwblore
usage: /<command> <new lore>
permission: bookswithoutborders.setlore
savepublicbook:
description: Same as savebook, but saves files in the public directory
aliases:
- bwbsavep
usage: /<command> [overwrite (true/false)]
permission: bookswithoutborders.savepublic
savebook:
description: Saves the book the player is holding to a text file in a private directory. If true is specified, a book of the same name by the same author will be overwritten by the new book
aliases:
- bwbsave
usage: /<command> [overwrite (true/false)]
permission: bookswithoutborders.save
setbookauthor:
description: Sets the author of the book the player is holding
aliases:
- bwbauthor
usage: /<command> <author>
permission: bookswithoutborders.setauthor
settitle:
description: Sets the title of the book/item the player is holding
aliases:
- bwbtitle
usage: /<command> <title>
permission: bookswithoutborders.settitle
loadbook:
description: Creates a book from the specified file and gives it to the player. If no file is specified, a list of available files is returned. If true is specified, the book will be signed, if false it will be unsigned
aliases:
- bwbload
usage: /<command> <file name or number> [# of copies] [signed (true/false)]
permission: bookswithoutborders.load
loadpublicbook:
description: Same as loadbook, but views files in the public directory
aliases:
- bwbloadp
usage: /<command> <file name or number> [# of copies] [signed (true/false)]
permission: bookswithoutborders.loadpublic
reload:
description: Reloads BwB's configuration file
aliases:
- bwbreload
usage: /<command>
permission: bookswithoutborders.reload
setBookshelfData:
description: Sets custom data for a chiseled bookshelf used when peeking at the bookshelf
aliases:
- bwbshelfdata
usage: /<command> <delete/name/lore> <text> [more text]
permission: bookswithoutborders.editbookshelf
addBookTitlePage:
description: Adds a blank page, title page or chapter page depending on input and whether the book is signed
aliases:
- bwbtitlepage
usage: /<command> [page index] [title~description]
permission: bookswithoutborders.addtitlepage
deleteBookPage:
description: Deletes one page from a book
aliases:
- bwbdeletepage
usage: /<command> <page>
permission: bookswithoutborders.deletepage
migrateBooks:
description: Migrates all txt books to yml, and fixes any incorrect filenames
aliases:
- bwbmigrate
usage: /<command>
permission: bookswithoutborders.admin
permissions: