BookDupe
Overview
I coded this plugin based on a request posted on the MinerAp subreddit by user loveandpolitics. The purpose of this plugin is to allow users to easily create copies of books without having to struggle with the (currently) limited cut-and-paste.
The plugin simply adds three new recipes:
- Signed (written) book + Book & Quill = 2x Signed (written) book
- Signed (written) book + feather + ink sack + book = 2x Signed (written) book
- Signed (written) book + feather + ink sack = 1x Book & Quill
The first two simply make copies of signed books. The third recipe strips the existing title and author tags from a Written Book, making it into a Book & Quill for further editing, while keeping the text intact.
Features
- Two recipes to duplicate books from
- Shift-click support to duplicate multiple books at once
- Sophisticated permissions
- Includes PluginMetrics support
- Functions via NBTTags, instead of the volatile ItemStack.clone()
- Ability to restrict the copying of potentially exploited (or exploitable), enchanted books
Permissions
| Permission | Usage |
| bookdupe.copy | Allows for the copying of any book from any author |
| bookdupe.copy.self | Allows a user to copy books which belong to them |
| bookdupe.copy.others | Allows a user to copy books which do not belong to them |
| bookdupe.unsign | Allows a user to unsign any book from any author |
| bookdupe.unsign.self | Allows a user to unsign books which belong to them |
| bookdupe.unsign.others | Allows a user to unsign books which do not belong to them |
| bookdupe.enchanted | Allows a user to copy/unsign enchanted books |
| bookdupe.enchanted.transfer | Allows a user to retain the enchantment when copying/unsigning books |
Source
https://github.com/Indiv0/BookDupe
Download
http://dev.bukkit.org/server-mods/bookdupe/files/
Changelog
| Version | Changes | Compatible Builds |
| 1.16.0 | Update to 1.7.2 | 1.7.2 |
| 1.15.0 | Bugfix | 1.6.4 |
| Permissions fix | 1.6.2 | |
| Jar size optimization | ||
| 1.12.1 | Minor bugfix | 1.6.4 |
| 1.6.2 | ||
| 1.12.0 | Expanded permissions | 1.6.2 |
| Massive code restructuring and optimization | ||
| 1.11.0 | Moved to Mbapi | 1.5.2 R-1.0 |
| Inverted permissions | ||
| Added third recipe | ||
| Various minor fixes | ||
| 1.4.2 | Various fixes | 1.4.7 R-0.1 |
| Removed CB reliance | ||
| Forced Java 7 | ||
| 1.4.1 | Updated for Bukkit 1.4.6 | 1.4.6 R-0.1 |
| 1.4 | Fixed Java 6 compatibility | 1.4.2 R-0.2 |
| Fixed PluginMetrics implementation | 1.3.2 R-3.0 | |
| 1.3.1 | Built against Java 6u37 to ensure compatibility | 1.3.2 R-3.0 |
| 1.3 | The entire book copying system now functions through the transfer of NBTTags | 1.3.2 R-3.0 |
| Added config.yml along with some default configuration settings | 1.3.2 R-2.0 | |
| Added ability to check and restrict or allow the copying of books with illegitimate enchantments | ||
| 1.2.4 | Fixed spelling mistake on one of the error messages | 1.3.2 R-2.0 |
| 1.2.3 | Fixed bug introduced in 1.2.1 where user could not duplicate books at all due to an error in NBTTag checking | 1.3.2 R-2.0 |
| 1.2.2 | Added PluginMetrics support | 1.3.2 R-1.0 |
| 1.2.1 | Added the ability to restrict a player's ability to copy books (via permissions) | 1.3.2 R-1.0 |
| 1.2 | Added secondary recipe to craft multiple books | 1.3.2 R-1.0 |
| Added shift-click support to secondary recipe | ||
| 1.1 | Fixed a bug resulting from clicking the result slot twice in a row | Unknown |
| 1.0 | Books successfully duplicate when placed as a shapeless recipe | Unknown |
Bugs/TODO
All bugs and TODO information can be found on the issue tracker for this project on GitHub.
Credits
Thank you to AgentME for your contribution.
-
View User Profile
-
Send Message
Posted Feb 14, 2014Nevermind. If I read the permissions right you can.
-
View User Profile
-
Send Message
Posted Dec 31, 2013@SilasPC
It's for survival servers. Where players don't have access to NBT editors or creative.
-
View User Profile
-
Send Message
Posted Dec 30, 2013Why would you want this? I mean, you could just use middle mouse button on the item... Also NBT editors are great for these kind of things if you absolutely aren't going to creative.
-
View User Profile
-
Send Message
Posted Jun 20, 2013@lJunKunl
Hmm that is weird.
Well I've rewritten Metrics support for the newest version, so that update should fix it.
Expect it in the next few days once I finish my exams.
-
View User Profile
-
Send Message
Posted Jun 20, 2013I get the following error message when first trying to run Bookdupe. I'm using the latest version available for download (v1.4.2)
-
View User Profile
-
Send Message
Posted Apr 2, 2013@JiFish
Well from the error message it looks like you are running an outdated version of BookDupe (1.4.1), which uses a deprecated NBT access method, which has since been updated in version 1.4.2.
And yes, you will be seeing updates for 1.5 once I have more time to work on the plugin (critical bugs will be fixed ASAP).
-
View User Profile
-
Send Message
Posted Mar 21, 2013I get the following error when starting this in the most recent development builds of craftbukkit. Will we see an update for 1.5.x versions? Thanks.
20:41:11 [SEVERE] Error occurred while enabling BookDupe v1.4.1 (Is it up to date?) java.lang.NoClassDefFoundError: net/minecraft/server/v1_4_6/NBTBase at com.github.indiv0.bookdupe.BookDupe.onEnable(BookDupe.java:27) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:303) at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:282) at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:242) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:381) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_4_6.NBTBase at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 12 more-
View User Profile
-
Send Message
Posted Jan 28, 2013@CommodoreAlpha
It's updated.
-
View User Profile
-
Send Message
Posted Jan 21, 2013This needs to be updated for 1.4.7.
And, can you add a configuration so that we can change the recipe for book copying?
Does the permission, "bookdupe.use" mean that a player can only copy their own books?
-
View User Profile
-
Send Message
Posted Nov 21, 2012@poiNt3D
Sure thing! I'll see what I can do.
-
View User Profile
-
Send Message
Posted Nov 21, 2012Can you make it possible to protect some special books from copying? Like blacklist by name or by author. It might be useful when you have some quest-related books and do not want your players to copy them.
-
View User Profile
-
Send Message
Posted Oct 17, 2012@jolefon
Sorry! I just tested BookDupe and there is a bug where the permissions do not allow you to duplicate books, even if configured correctly. I will fix this ASAP.
-
View User Profile
-
Send Message
Posted Oct 17, 2012@jolefon
Will not what? I cannot understand what you are asking.
My project is very much active.
-
View User Profile
-
Send Message
Posted Oct 17, 2012Hello , you projet is disable ?
Because your project will not
-
View User Profile
-
Send Message
Posted Oct 16, 2012@dickwick
Mkay done! Read the updated project overview for details on the permissions and how to use them. The new file will be available for download as soon as the moderators approve it.
-
View User Profile
-
Send Message
Posted Oct 16, 2012@dickwick
No, not at the moment. That does sound like a good idea however so I'll try to implement it :)
-
View User Profile
-
Send Message
Posted Oct 15, 2012Is there possible option (permissions/config) to allow user copy only their books?