StandardBooks
StandardBooks
With this Plugin you can hand out a written book on first join (maybe containing the rules) or get other saved books (maybe with admin commands) via command.
Check out the Converter tool for textfiles created by Marcsello ConverterPage
Features
requires Java7
- save books ingame. for this you must hold the book
- books can contain the &0,&1... color codes
- books can contain "§" formatting
- define the book given on first join or turn feature off
- per book permission so your Builders can't get the admin Commandbook
- give a book to an other player
- can override /help and /rules so a defined book is inserted instead (needs sb.help or sb.rules permission)
- hand out a book at first join (delay possible)
Commands
- /sbs save [bookname] | saves the written book in hand with given name
- /sbs list | lists all saved books
- /sbs give [bookname] | gives you the book with the entered name
- /sbs give [bookname] [playername] | gives the book to the player
Permissions
- sb.list | allows to get a list of all saved books
- sb.save | allows to save a new book
- sb.give.bookname | allows to insert the book with the given bookname
- sb.give.other | allows to give a book to an other player
- sb.help | allows to receive the helpbook when /help is typed
- sb.ignorehelp | players with that permission will be ignored when overriding /help
- sb.rules | allows to receive the rules book on /rules
- sb.ignorerules | players with that permission will be ignored when overriding /rules
Change notes
v1.4.1
- fixed incompatibility with bukkits 1.4.5-R1
v1.4
- added delay for first join book (if you want to use it you need a new config file)
- list and give book to player command can now be performed via console
- fixed list command
v1.3
- added feature to give the book to an other player
- fixed help and rules override and added permission to get normal help and rules
- fixed bug writing none as inserted book giving empty book
- fixed bug that a book could not be found when starting with capital
v1.2
- added "§" formatting support
- added possibility to override /help and /rules (needs new config file)
- added sending of plugin metrics to mcstats.org can be turned off in config (needs new config file)
v1.1
- changed command to sbs
- changed the way a book is saved so an enter key will not be a new page (that means you hav to change your books)
- fixed wrong spelled example
- fixed copying 'title: ' and 'author: '
v1.0
- first release
Known Issues
- ???
Converter
Marcsello created a tool to convert textfiles into StandardBokk accepted files check it out:
Planned features
- check if book already in player inventory
- give.all.* permission for all books
- message on help and rules
- Any ideas? let me know
Thanks
Thanks got to blackbinary for hosting our server where I can develop and test my plugins
Thanks to Marcsello for creating the Converter
Making a book with "book&quilll" can be replacated in a dispensor using a plugin "replicator", simply put the book first, then set the sign [replicator] at the dispensor.
But putting a book from standardbooks will not replicate it. Why?
My override of /rules doesnt work either, and nothing happens there. I have readen the past post about it, but doesnt help. I have 60 plugins.
2.nd edit: I have succeeded making the cmd /rules to work, but by adding the to denials of sb specificly. nb i would still like this book to be replicate-able by the dispensor.
@XCreeperReaperX
@Project:
Great plugin! I was using RuleBook before but since it's not updated I switched over to yours and it works flawless :) (I didn't know about your plugin before :O )
I read Java 7 can only handle a maximum of 1024 MB of RAM
@DHLF
Ah yes...MCstats.org say 85% of the Servers use Java 7. Well, maybe we test it. :)
@BadHaders
/help and /rules work but you must be sure that the permissions are set correctly players who are allowed to use it need sb.help or sb.rules but they must not have the permission sb.ignorehelp or sb.ignorerules otherwise they will get the not overwritten reaction of your server to the commands
The plugin is working perfectly other than the fact that /help and /rules overrides don't work. Any fix for this?
@DHLF
thanks for giving this informations...
also I asked joebladon for some more specific information about the book the error accured but got no response and wasn' able to check fo myself because of a big change of our own server system but I will look into this the next 24h.
@joebladon
I can confirm this error. There is a possible workaround until this get fixed:
Write your desired book as you like without color codes, sign it and save it.
Look into /plugins/StandardBooks/books/ where you can find your saved books.
It should be possible to put your wanted colors into those file using an editor.
For example insert the two signs &f (for white) in front of your text.
Normal book color would be &0.
Be aware that a little mis-typing will break your written book! Keep a backup for safety.
Save the changed book and give it yourself to see if this is what you wanted.
If you already got the book THIS wont change, only the newly "given" book shows the diffence.
The leading code sign can be the and(&) or the § sign (hard to read here -.-) not $ !
EDIT:
Found an *easier* solution: Use the § instead of those & (and) sign!
Type somewhere (like in your browsers searchbar) those § sign, copy it to the clipboard (ctrl+c).
Now write your book and whenever you want color just paste it in (ctrl+v) followed by the desired color (0..f).
@XCreeperReaperX
Perhaps most (unix) servers running jre6 because its easier to install?
Other people confirmed that those jre7 consumes less memory and runs faster..
I did not see any errors or more ram usage (using jre7).
Having some issues with colour codes. Using any of these throws back errors to console.
& or ;; or §
Here is what I get back in console.
http://pastebin.com/Y1WCR1V7
@Skies912
right now it's not but I think about an easy way to do so
@gavigny
If you use the firstjoin book the player who comes to your server for the first time will automatically get the defined book without typing any commands. Is this what you meant?
Nice plugin ! After a first join, can a player can have a saved book without the command ? Exemple: Tap a sign or tap a Bookshelf. If not, please do it and it would be the best plugins.
Is there a way to auto-give players multiple books upon first join? If not, can there be please :)
@XCreeperReaperX
I don't think so... I would have to change the hole command class and I don't want to
Can u please make a Java 6 version? Nobody run Java 6 on his Server exept he want bugs and a high ram-usage xD
@SurceBeats
which bukkit version is your server running?
18:49:45 CONSOLE: [SEVERE] Could not pass event PlayerCommandPreprocessEvent to StandardBooks v1.4 18:49:45 CONSOLE: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/inventory/CraftItemStack 18:49:45 CONSOLE: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.inventory.CraftItemStack 18:49:49 CONSOLE: [SEVERE] Could not pass event PlayerCommandPreprocessEvent to StandardBooks v1.4 18:49:49 CONSOLE: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/inventory/CraftItemStack
:(
@EpicMysticz
hehe that happens when one finger is faster ;)
thanks for reporting
There's a typo; "wirtten" is supposed to be "written". Furthermore thanks for the plugin, it's really helpfull!
@ScorchRaserik
@ the people with /rules problem
I was not able to get any errors while testing these even without a rules plugin but from what you write it appears to me that it may be that you have given the sb.ignorerules command wich causes the plugin to cancel the overwriting. if this permission isn't set but the sb.rules is it should work without any problems. (similar for /help)
if you checked your permissions and it is still not working we have to look further what could cause this but right now i wasn't able to reproduce your problem except for the wrong permissions.