Setup + Config

YMLbook

Feature pageSetup + Config pageChangeLog page

Setup

  1. Download latest YMLbook version.
  2. Open YMLbook.zip, drag and drop all files to /plugins folder.
  3. Open plugins/YMLbook folder and edit config.yml file. Here you can setup: First time join books, hide YMLbook prefix and customize messages.
  4. When you are ready, open books.yml file. Here you can edit books or make new one.
  5. Restart or Reload server plugins and its should work now :)

Always check YML files output, before saving -> http://yaml-online-parser.appspot.com/

Config file

In this section i will try explain every single line from config.yml, so that the matter should be clear to all.

First join books

World:
  world_name:
     - rules
     - readme

Write to world_name: you world name where you want setup first join books.

Example, if you have 2 world (guestworld and hubworld), where you want add fist join books. Remember: The books just spawn one time, when player is first time in the world.

World:
  guestworld:
     - rules
     - readme
  hubworld:
     - hungerrules
     - readme

Messages

I don't copy+paste messages here, because its so huge.. But simple you can translate messages to your native language, if you want.

Also if you want hide messages from players, it possible here too. Example, you want hide "You not have permissions!" message, edit nopermission-display: true to false

Books file

Write book information to books.yml file (book title, -lore, -author and -pages). To disable lore text you just write false (ex. lore: false).

HINT: Every single book need permissions, before can copy it to inventory (ex. ymlbook.book.rules this mean group members can copy the rules book OR ymlbook.book.* this mean group members can copy all books, without need give single permissions each book).

books.yml
book:
 rules:
  title: Rules
  author: SERVER NAME
  lore: HOLY S***, DO YOU SEE THIS, IN MINECRAF?!
  text: |
    1. Txt here..
    2. Txt here..
    3. Txt here..
    4. Txt here..
    5. Txt here..
 readme:
  title: Welcome to use YMLbook
  author: exel80
  lore: Version 1.4
  text: |
    1.4 versio is here! Finally i get this released :)
    We have lots of new features example: Lore, bookgive and much more cool stuff.
    
    Hope you enjoy,
    Exel80

Here is example, how to make new book.
copy+paste this to books.yml and try command:

 test:
  title: TEST
  author: TEST
  lore: false
  text: |
    TEST

If you are OP you can automaticly use this test book by using /book test -command.
If you want other members can too copy this book to invetory, you need give permission (ymlbook.book.test)

Text won't go to new line?
Here is helpful picture for that problem,
http://puu.sh/3V6cc/abef1d3158.png

If you need help, you are free to leave comment or PM me :)

Video tutorials

Embed Removed: https://www.youtube.com/v/WhWrQKHmTs4?fs=1

(Language: Portuguese - Credits Video: AbsintoJ/YMLbook)


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes