PrintingPress
Foreward
First off, I didn't copy the "other" PrintingPress plugin. While we both accomplish like goals, we take different paths of doing so. Not to mention I was working on it a week before I saw that plugin.
What This Plugin Does
My plugin has one goal in mind, and that is to provide a way to mass produce books quickly and efficiently in a vanilla-like way. To do this, I made the Printing Press Block. It's just an ordinary workbench (configurable!) and an upside-down stair block to "press" the copies. The stamping block is also configurable, so if you don't like it there, then that's perfectly fine.
To create a printing press, all you need is a workbench and a wooden stair. Just place down the workbench and right click the stair onto the workbench, and it turns into a printing press! From there, just right-click the workbench with a Written Book, while having at least 1 ink sac and 1 book in your inventory, and it will swap the ink and book for a copy of your book. If you don't want the press to use ink or books, both are configurable as well.
Currently the printing press doesn't copy Book and Quills, however support can be added if enough people desire to have it. If you have any other suggestions, I'm also open to them as well.
Installation
Just take the PrintingPress.jar and put it into your plugins directory, and start or restart your server!
Configuration
The configuration file is stored in plugins/PrintingPress/config.yml. An example one can be seen below:
#Determines if the Printing Press requires ink sacs to copy books UseInk: true #Determines if the Printing Press needs books to copy books UseBooks: true #Determines if the Printing Press requires ink sacs to copy maps UseInkMap: true #Determines if the Printing Press needs paper to copy maps UsePaper: true #Will the press use the "stamp" block above the block UseStamp: true #Does the player need to sneak in order to use the press? Sneaking: false #The block used for copying Block: workbench #The amount of books per press OutputAmount: 1
Permissions
- printingpress.use - Allows use of any Printing Press
- printingpress.create - Allows creation of a Printing Press
- printingpress.reload - Allows /printingpress reload command.
- printingpress.copyother - Allows copying of books that aren't yours.
- printingpress.free - Books and Maps don't cost anything if you have this permission.
To reload the config, type /printingpress reload.
Wish the right file was up :-(
Permissions are here! Great! Thank you! We will install your plugin to our server :)
@ShinyQuagsire
The 0.5 upload seems to be the Jar for ShelfStorage :(
Even with perms working properly printingpress.create does not prevent creation of a press. Anyone can put stairs above a workbench. How is this node intended to prevent creating a printing press?
Put in PrintingPress 0.5 for approval!
- Added new permission printingpress.copyother to prevent piracy. Defaults to OP.
- Added Vault/PEX softdepend.
- Added another premission printingpress.free that allows admins to copy things for free. Defaults to false.
@OtterTrotter
Edit plugin.yml and change the nodes you wish to restrict from true to false or op, looks like everything but the reload command is defaulting to true.
Both the use and create nodes default to true regardless of my efforts to disable them. This is with vault.
Edit the plugin.yml to include vault as a soft dependency.
Open the jar as an archive with a zip program like winzip or 7zip. Edit plugin.yml with your favorite text editor. Add the following text as a new line above commands -> softdepend: [Vault]
Here are the error lines in the console that appear, everything is configured and set up correctly and I and it seems others can't use the press. This error shows in the console.
http://pastebin.com/cND67zwJ
I got the plugin and started it up. Nothing happened. I checked the log and saw that :
1) PP-B was loading before Vault.
2) When I attempt to use the plugin, even with all the prerequisites, it doesn't copy the book. THen in the console, it gives the PlayerInteraction error everyone is reporting.
~~~~~~~~~~
Could you, possibly, make it so PP-B loads after World-Load / World-Generation? Could that possibly work, or would it ruin the plugin? I know nothing of Java, otherwise I wouldd test it myself before I commented. :)
Thanks for the awesome idea for this plugin! :D
It seems that the issue with the plugin is that I would check to see if Vault (One of the three perm plugins) is loaded, and then set it up. For some reason, I guess this plugin was loading first, and it would never set up Vault, but I'm working on fixing it atm. The three supported permission plugins are Vault, PEX, and BukkitPerms.
As for the "piracy" issue, I'll make a check to see if the player is copying his/her own book, except if they have a permission. (printingpress.admin?)
I'll add something for that separates the items being free for admins and users as well. As for the custom items as a cost, I guess that wouldn't be too hard to make either.
I keep getting a "Could not pass event PlayerInteractEvent to PrintingPress" every time I try to place a wooden stair on to a crafting table :/
Wow, this is a very tidy plugin, good job. I will be downloading it in the morning.
Hey, i made a little video showcase on your plugin :) Hope you'll like it!
Link to video: http://youtu.be/djexUf_u1bY
Would it be possible to make a configurable item list for creating printable items? for example, adding a money component(such as gold) to book creation..?
Also, would it be possible to make Cost over-ride permissions for OP's? Currently in my server, we wanted to have a way to create book stores, that ran off the system, but, the cost of books alone doesn't keep people from getting a book, copying it, and selling it themselves.
As well, we don't want to go and turn off the book costs, every time we need to print more rule books. Thanks for looking, and I hope to hear from you soon! I love the plugin.
As for estetics only, can you cause the stairs above the press, to rotate..?
Well im using the newest build of craftbukkit, and for one, whenever you place a woodenstair ontop of a workbench it doesnt work, so I then made it til it was upside down, right clicked with a book that has been written in, and nothing happens. also when reloading I get this error.
http://pastie.org/4464806
Also gettin this errro its freakin hilarious
@fuzyfeet
This would be great.
What permissions plugins are supported, i cant seem to get this to work :(
EDIT: Getting this error when i try to print a book. http://pastebin.com/UShUwJWr Using printing press 0.2 on CB 2327, permissionsex 19.3
Put PrintingPress 0.2 in for approval!
Additions/Fixes:
Any way to make a config option or permission that limits players to copying only books that they wrote?