Clears author, generation and title data just in case

This commit is contained in:
2022-11-04 16:19:15 +01:00
parent 90bab4a148
commit c27756f7dc
2 changed files with 4 additions and 0 deletions

View File

@@ -40,6 +40,9 @@ public class CommandClear implements TabExecutor {
return false;
}
bookMeta.setPages("");
bookMeta.setAuthor(null);
bookMeta.setGeneration(null);
bookMeta.setTitle(null);
heldBook.setItemMeta(bookMeta);
BooksWithoutBorders.sendSuccessMessage(sender, "Book cleared!");
return true;