[1.12.2] Book Mails

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Jazzkuh

Supporter
Addon Developer
Dec 23, 2018
4
0
1
20
Category: Mail

Suggested name: Bookmail

Spigot/Skript Version: 1.12.2, skript 2.2-dev33

What I want:
I would like to have a skript that uses books in wich you can write some text and you can send it to another player. How it works: You can use the command /sendmail [player]: that opens a book where you can write the text in than if you click on done it closes and saves the text. If the other player clicks on a enchantment table (Mailbox) they can see a gui if they have unread books/mails, the gui shows a book wich the player can click on. In the book you can see the text the sender send. If they leave the bookmenu thing the book will automaticly be removed from the mailbox. The title of the gui item is the name of the sender of the book.

Ideas for commands:
/sendmail [player] (See "What I want: " for more information)

Ideas for permissions:
No permissions.

When I'd like it by: As soon as possible
 
  1. Code:
    set {_bookToOpen} to a new book
    loop book pages of {existingBook}:
        add page with data loop-value to {_bookToOpen}
    open book {_bookToOpen} to arg-1
  2. no u