Inactive [FUN/SEC] BookRules v1.0 - read the rules, from a book [1.3.1-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by codename_B, Aug 9, 2012.

  1. Offline


    Ever wished you could have your server rules on a book?

    well now you can...

    how it works:
    • on first join players are given a book, they must open this book to be able to move, chat, or break blocks.
    • /rules (get given a copy of the rules)
    • /saverules (save the book in your hand to be the rulebook)
    • rules.view (use /rules command - default: true)
    • rules.create (use /saverules command - default: op)
    download link:
    example config:
    message: Read the rules! Open the book!
    title: ServerRules
    author: codename_B
    - 'Default rules:
      * don''t grief
      * don''t steal
      * send pizza money to codename_B'
    izak12345678910 and kahlilnc like this.
  2. Offline


    Looks great, do the '*' in the configuration represent new lines?
  3. Offline


    Nice, just waited for this :] thanks and good work
  4. Offline


    Does not Load:

  5. Offline


    Aw drat, I broke the plugin.yml - will fix now.
  6. Offline


    Tellme when u have fixed it :) ty
  7. Offline


    Should be fixed now.
  8. Offline


    Hey Codename can you add color code support?
    Like all the color codes &0-9 a-f k-o thanks!
  9. Offline


    You can just type in §<colorCode>
    codename_B likes this.
  10. Offline


    Oh ok cool didn't know if that was supported or not I was using Deathmarine cause i knew it had colors but now I'll switch over to this! Thanks
  11. Offline


    anyway to disable:
    "they must open this book to be able to move, chat, or break blocks."
    id like players to just have a guide on how the server works.
    and can you add a way that if they type /guide
    or /rulebook
    itll give them the book again (with a cooldown so they dont get like a million copies :p)
  12. Offline


    Thanks for updating it mate!

    What i also would like as a future feature:

    -Multiple books with for example /saverules 1 ; /saverules 2 . I find that very important because some servers (for example mine) are multilingual! Or if you have exceeded the limit of 50 pages!

    -Upon typing /rules or first visit people should get more than 1 book for example for different languages

    Thanks in Advance
    ravand :)
  13. Offline


    I believe the limit is 127 If not mistaken. Ya multiple book support would be nice I would want to create like a FAQ or how to use a few plugins book in other words just a server tutorial book
    Zmolahah likes this.
  14. Offline


    [ NoMax.jpg ] Limit? No limit.

    Now if only there was an easier way to inject color codes.
    izak12345678910 likes this.
  15. Offline


    Deathmarine and I will be working on a seperate, more fully featured plugin to do all this and more.
    izak12345678910 likes this.
  16. Offline


    Ok to reach the page limit is highly unlikely unless you want to write a roman. Still it would be good to have multiple books for multiple languages.
  17. Offline


    Can you please add a way to make the players not have to open the book but only spawn with it?
  18. Offline


    Please use a direct link in the future :|
  19. Offline


    This plugin looks great I was wanting something like this for a while I'm going to install it now, When a player joins do they have to use /rules then open the book or just spawn with the book in there inventory? I just need to know because if they have to do /rules I can add a sign at spawn saying use /rules,

    also this is a good idea for a anti spam plugin you should make it so if a player does not read from the book and they just leave the server it does not have the (player) left the game text in it, so they can't do leave and join spam, also it should not have (player) joined the game until they open the book because then it takes away all the join and leave spammers (hopefully) Not sure if you have already done this though I'm just installing it now but if not please please please add this!! for the people who don't want this you could just do a config so they can turn it off :)

    I thought of another great idea that would be cool with the plugin!
    Basically you use the wand tool (wooden axe) or whatever else you choose and you make 2 position points like you do in worldedit and if someone walks into that area they get a book of your choice and you can make more then 1 area for example pretend I walk through a portal and into a different world and I made the first position and second position I get a book with that world's rules or if I walk into a giant castle area I get a guide to that castle.

    Used it now, if you use /rules and you have a diamond block in your hand you lose the block :( could you make it so when you use /rules you drop it in front of you? that way it will not replace any items. Also theres not a way to edit the book and I don't use it as a rule book I use it as a guide book and I added a index to the guide book on locations in my server but when we make a new location there is no way to edit the book to I have to rewrite the whole thing and that will cost a lot of my time is it possible to make it so you can edit the rules? I hoped there would be a plugin like this ever since I heard Mojang was adding writeable books!

    I think the limit used to be 50 on the pre release, Probably goes into the thousands now though

    Just tested it out... maximum 50 pages for me

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 27, 2016
  20. Offline


    You can surpass the amount by adding more pages via the config. The pic is actually from in game.
  21. Offline


    Ahh, Fair Enough
  22. Offline


    Hi there,
    Everytime I try to inject the plugin. It just doesnt work? Im not seeing it in my /pl list nor can I find where the error is in the console.
    Would there be anything Im doing wrong?
    Oh yeah, the Bookrules folder is not being created in my plugin folder. So, Im not getting config ect.

    Fixed this, I realised I was using a previous version that I had downloaded a few days ago?
    Thanks for the great plugin!
  23. Offline


    Thanks for making this for me
  24. Offline

    Mike L

    Can you PLEASE make it so the no move, no break, etc options can be toggle-able.
    I would love to be able to turn those features off so players have a rule book but are not FORCED to read it.

    -Otherwise, great plugin I've been waiting for something like this!
  25. Offline


    Gonna make it a config option in the next version!
  26. Offline

    Mike L

    YAY! Can't wait for next version!

    Any chance we can get an ETA on when this next version will be released?
  27. Offline


    Keep getting this error , is it broke?

    [SEVERE] org.bukkit.configuration.InvalidConfigurationException: while scanning a quoted scalar
    in "<string>", line 5, column 3:
    - 'Rules:
    found unexpected end of stream
    in "<string>", line 36, column 1:


    2012-08-14 20:39:26 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(
    2012-08-14 20:39:26 [SEVERE] at de.bananaco.rules.util.Config.onLoad(
    2012-08-14 20:39:26 [SEVERE] at de.bananaco.rules.util.Config.load(
    2012-08-14 20:39:26 [SEVERE] at de.bananaco.rules.RulesPlugin.onEnable(
    2012-08-14 20:39:26 [SEVERE] at
    2012-08-14 20:39:26 [SEVERE] at
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.Bukkit.reload(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.command.defaults.ReloadCommand.execute(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.DedicatedServer.ah(
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.DedicatedServer.q(
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.MinecraftServer.p(
    2012-08-14 20:39:26 [SEVERE] at
    2012-08-14 20:39:26 [SEVERE] at
    2012-08-14 20:39:26 [SEVERE] Caused by: while scanning a quoted scalar
    in "<string>", line 5, column 3:
    - 'Rules:
    found unexpected end of stream
    in "<string>", line 36, column 1:


    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalarSpaces(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchSingle(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.Yaml.loadFromReader(
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.Yaml.load(
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(
    2012-08-14 20:39:26 [SEVERE] ... 21 more
  28. Offline


    yes hi i have a question when i open the config it and i change stuff i save it but when i reload server it doesnt do anything with the thing how can i fix this problem
  29. Offline


    Your configuration is broken hence
    Post your config here

    Dont reload first of all and remove your player.dat so you get the updated book. (RESTART!)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 27, 2016
  30. Offline


    Nice codename, I was actually going to ask you about doing something like this a few days ago.

Share This Page