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 10, 2012.

  1. Offline

    codename_B

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
    commands:
    • /rules (get given a copy of the rules)
    • /saverules (save the book in your hand to be the rulebook)
    permissions:
    • rules.view (use /rules command - default: true)
    • rules.create (use /saverules command - default: op)
    donate:
    download link:
    example config:
    Code:
    message: Read the rules! Open the book!
    title: ServerRules
    author: codename_B
    pages:
    - 'Default rules:
     
     
      * don''t grief
     
     
      * don''t steal
     
     
      * send pizza money to codename_B'
    

    This post has been edited 6 times. It was last edited by codename_B Aug 10, 2012.
    izak12345678910 and kahlilnc like this.
  2. Offline

    Stevensaurus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Looks great, do the '*' in the configuration represent new lines?
  3. Offline

    Professor_Tee

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice, just waited for this :] thanks and good work
  4. Offline

    ravand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does not Load:

  5. Offline

    codename_B

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Aw drat, I broke the plugin.yml - will fix now.
  6. Offline

    ravand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Tellme when u have fixed it :) ty
  7. Offline

    codename_B

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Should be fixed now.
  8. Offline

    izak12345678910

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey Codename can you add color code support?
    Like all the color codes &0-9 a-f k-o thanks!
  9. Offline

    WarmakerT

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You can just type in §<colorCode>
    codename_B likes this.
  10. Offline

    izak12345678910

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    tommygoesha

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    ravand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    izak12345678910

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    This post has been edited 1 time. It was last edited by izak12345678910 Aug 10, 2012.
    Zmolahah likes this.
  14. Online

    Deathmarine BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [ NoMax.jpg ] Limit? No limit.

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

    codename_B

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Deathmarine and I will be working on a seperate, more fully featured plugin to do all this and more.
    izak12345678910 likes this.
  16. Offline

    ravand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    Auy658

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you please add a way to make the players not have to open the book but only spawn with it?
  18. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please use a direct link in the future :|
    Approved.
  19. Offline

    Zmolahah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 :)

    [Edit]
    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.

    [Edit+]
    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!

    This post has been edited 3 times. It was last edited by Zmolahah Aug 12, 2012.
  20. Offline

    Zmolahah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I think the limit used to be 50 on the pre release, Probably goes into the thousands now though

    [Edit]
    Just tested it out... maximum 50 pages for me

    This post has been edited 1 time. It was last edited by Zmolahah Aug 12, 2012.
  21. Online

    Deathmarine BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You can surpass the amount by adding more pages via the config. The pic is actually from in game.
  22. Offline

    Zmolahah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ahh, Fair Enough
  23. Offline

    hbrewitt

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

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

    This post has been edited 1 time. It was last edited by hbrewitt Aug 13, 2012.
  24. Offline

    Plancker

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks for making this for me
  25. Offline

    Mike L

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!

    This post has been edited 1 time. It was last edited by Mike L Aug 13, 2012.
  26. Offline

    codename_B

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Gonna make it a config option in the next version!
  27. Offline

    Mike L

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    YAY! Can't wait for next version!

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

    This post has been edited 1 time. It was last edited by Mike L Aug 14, 2012.
  28. Offline

    Equinox2507

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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(YamlConfiguration.java:55)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105)
    2012-08-14 20:39:26 [SEVERE] at de.bananaco.rules.util.Config.onLoad(Config.java:128)
    2012-08-14 20:39:26 [SEVERE] at de.bananaco.rules.util.Config.load(Config.java:76)
    2012-08-14 20:39:26 [SEVERE] at de.bananaco.rules.RulesPlugin.onEnable(RulesPlugin.java:36)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:567)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.Bukkit.reload(Bukkit.java:183)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:21)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:488)
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.DedicatedServer.ah(DedicatedServer.java:248)
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    2012-08-14 20:39:26 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    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(ScannerImpl.java:1532)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(ScannerImpl.java:1464)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(ScannerImpl.java:834)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchSingle(ScannerImpl.java:819)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:337)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:537)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    2012-08-14 20:39:26 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    2012-08-14 20:39:26 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    2012-08-14 20:39:26 [SEVERE] ... 21 more
  29. Offline

    LOOK_AT_DEATH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  30. Offline

    kahlilnc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Your configuration is broken hence
    Post your config here

Share This Page