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
Is there a better plugin so far? I'm running on 1.18.2 with the following errors:
22.06 15:48:51 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
22.06 15:48:51 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
22.06 15:48:51 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
22.06 15:48:51 [Server] INFO at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.2.jar:git-Paper-379]
22.06 15:48:51 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.2.jar:git-Paper-379]
22.06 15:48:51 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.2.jar:git-Paper-379]
22.06 15:48:51 [Server] INFO at ch.blackmining.SB.MetricsLite$1.run(MetricsLite.java:165) ~[StandardBooks.jar:?]
22.06 15:48:51 [Server] INFO at ch.blackmining.SB.MetricsLite.access$4(MetricsLite.java:264) ~[StandardBooks.jar:?]
22.06 15:48:51 [Server] INFO at ch.blackmining.SB.MetricsLite.postPlugin(MetricsLite.java:273) ~[StandardBooks.jar:?]
22.06 15:48:51 [Server] INFO java.lang.NoSuchMethodError: 'org.bukkit.entity.Player[] org.bukkit.Server.getOnlinePlayers()'
22.06 15:48:51 [Server] WARN [StandardBooks] Plugin StandardBooks v1.4.1 generated an exception while executing task 18
22.06 15:38:51 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
22.06 15:38:51 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
22.06 15:38:51 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
22.06 15:38:51 [Server] INFO at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.2.jar:git-Paper-379]
22.06 15:38:51 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.2.jar:git-Paper-379]
22.06 15:38:51 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.2.jar:git-Paper-379]
22.06 15:38:51 [Server] INFO at ch.blackmining.SB.MetricsLite$1.run(MetricsLite.java:165) ~[StandardBooks.jar:?]
22.06 15:38:51 [Server] INFO at ch.blackmining.SB.MetricsLite.access$4(MetricsLite.java:264) ~[StandardBooks.jar:?]
22.06 15:38:51 [Server] INFO at ch.blackmining.SB.MetricsLite.postPlugin(MetricsLite.java:273) ~[StandardBooks.jar:?]
22.06 15:38:51 [Server] INFO java.lang.NoSuchMethodError: 'org.bukkit.entity.Player[] org.bukkit.Server.getOnlinePlayers()'
22.06 15:38:51 [Server] WARN [StandardBooks] Plugin StandardBooks v1.4.1 generated an exception while executing task 18
Oh dear looks like the dev is inactive
Can you add a reload command?
When doing /rules I do not get the book. It just says you dont have permission once. (essentials) I have the sb.rules in the permissions.
So my conclusion is that only color codes work? Not "bold" fonts and others?
Btw, I noticed that I can't combine colorcodes with fonts. Like I want to put this: "&2&lHello" but when I save the book and check it, it only saves the color but it leaves it like this: "&lHello"
@welknair
You have to sign the book or it will not work.
@CommodoreAlpha
Yes books contains "§" formatting.
In you haven't noticed in the update v1.2 it added support for it through his plugin.
That's not a feature unique to this plugin, that's a feature in vanilla Minecraft.
Whenever I try to save a book, all I get is the following message:
"[StandardBooks] An error occurred while saving book"
I love this! Thank you!
Two requests:
1) My server log doesn't show when people say /rules. They get a book, but I want the log event. Can this be fixed?
2) Players with a full hotbar might not know when they've been given a book. Can they be shown a message, set in config.yml? "You have received a book called %bookname%" or something?
Thanks again, great plugin!
EDIT: I see #2 is in the plan already. Thanks, can't wait. :-)
@bugzero
But 1.4.7 is not 1.5.2. Yes it does work though.
I have all the permissions, and have tried saving a duplicated book&quill, and it says i am not holding a book to save. Why?
Hello! this plugin is missing: &k &l &m &n &o &r - Color codes sadly, hope something change.
@Marium0505
yes it works fine for 1.5.2
@ChaoticTrack
give they this permission: sb.ignorehelp
Does this work on 1.5.2?
About my last post... for Citizens and Guests on my server... it overwrites the /help command and now they can't type /help.
Thanks for the awesome plugin! It's working perfectly for me on 1.5.1. :D
Any update coming? sorry if this questions is annoying but i want know :D