From 51b77acb0cf7ce1ea50d9bf80c9179feea954b6d Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 8 Jan 2026 12:19:15 +0100 Subject: [PATCH] Makes encryption signs support admin decryption prevention --- README.md | 62 ++++++++++--------- .../command/CommandCreateBwBSign.java | 17 ++++- .../listener/SignEventListener.java | 28 +++++---- src/main/resources/plugin.yml | 1 + 4 files changed, 63 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 1466dff..8843b06 100644 --- a/README.md +++ b/README.md @@ -63,35 +63,35 @@ Books without Borders has got your back! An in-game description of available commands is available through the /bwb command. -| Command | Alias | Arguments | Permission | Description | -|----------------------|---------------|----------------------------------------------------------------------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| /addbooktitlepage | bwbTitlePage | \[page index] \[title~description] | bookswithoutborders.addtitlepage | Adds a blank page, title page or chapter page depending on input and whether the book is signed. The title author separator (default `~`) is used to separate the input into title,paragraph1,paragraph2,... | -| /bookswithoutborders | bwb | None | | Displays information about commands (and permissions if the user has bookswithoutborders.admin) | -| /clearbook | bwbClear | None | bookswithoutborders.clear | Removes all text from the held un-signed book | -| /copybook | bwbCopy | \<# of copies> | bookswithoutborders.copy | Copies the book the player is holding | -| /createbwbsign | bwbSign | \ \[book identifier/password] \[encryption style] | bookswithoutborders.signs | Creates a books without borders sign, as specified. This command is not restricted by the normal sign line text limit, and can load books with any name length for give signs. Encrypt and decrypts signs can be created manually just fine, but using this avoids manual formatting. | -| /decryptbook | bwbDecrypt | \ | bookswithoutborders.decrypt | Decrypts the book the player is holding. "key" is required and MUST be IDENTICAL to the key used to encrypt the held book | -| /deletebook | bwbDelete | \ | bookswithoutborders.delete | Deletes the specified file in the player's directory | -| /deletebookpage | bwbDeletePage | \ | bookswithoutborders.deletepage | Deletes one page from a book | -| /deletepublicbook | bwbDeleteP | \ | bookswithoutborders.admin | Same as deletebook, but deletes files in the public directory | -| /editbwbconfig | bwbConfig | \