MagicBookshelf by Tim Clancy - 1.2.5 Compatible
Magical Bookshelves!
Release of Source Code:
As of 2.11.14, Tim has released all code free for use here: https://github.com/TimTinkers/MagicBookshelf. The code you will find there is the plugin in its most current state. Enjoy, and feel free to reproduce in any manner you'd like, just so long as credit is always given for any code used. It would also be very kind of you to link to this page as well.
Goal:
This plugin seeks to improve upon the vanilla Minecraft enchanting system.
The Minecraft system takes a very long time to get to higher levels of experience, and resets you to a much lower level upon dying. This encourages many players to make mob grinders to try and earn experience, which is not fun for anyone. The way MagicBookshelf tries to fix this is by allowing players to quickly and simply store their experience points inside of bookshelves, to be withdrawn later. By allowing users to slowly build up their levels over time, it is possible to get to that 30th level without sitting at a mob grinder all day.
Features:
Right-click a bookshelf to store your experience inside it.
Left-click a bookshelf to take the experience out of it.
Add a sign with [XP_Private] on the first line, followed by up to three usernames, to lock a bookshelf for certain users. Only these users will be able to break, withdraw from, or deposit to that bookshelf.
Permissions supported:
- magicbookshelf.lock gives users the ability to lock their shelves.
- magicbookshelf.break gives users the ability to break ANY shelves.
- magicbookshelf.store gives users the ability to store xp in shelves.
- magicbookshelf.withdraw gives users the ability to withdraw xp from shelves.
It's that easy! Video of use:
If you are Polish, adeknijak made this neat video:
If you are Czech, LPmareonCZ made this neat video:
Configuration:
There isn't any way to configure settings right now. Just be certain that the MagicBookshelf folder (and its included shelves.txt file within) make it into the plugin folder. There are both Java 7 and Java 6 versions, choose Java 6 if you aren't sure.
To do
- Add configurable settings.
- Add permissions support.
- Add an effect to bookshelves that have experience in them.
@moose517
I will never understand why not, but thanks for the advice. Getting a Java 6 file up is next on the TODO list.
you really need to recompile with java 6 as many many people don't have java 7
@genesis_aix
Ah yeah, this was made with Java 7. I'll add a disclaimer in the description, thanks for catching this. And glad to hear it's working! :)
@Derthmonuter Structure? Just throw any plug inside the plugin folder. Ok so i tried running it with only this plug and it gave the same error. I should have googled it better the first time: tinyurl.com/7ks33s9 Guess this was made with/for java7? Running it with java7 gives no errors, now im gonna try with the rest of the plugs! Edit: All plugs started fine with Java7, yey =)
@genesis_aix
Oof. I'm not sure. It works fine with a number of plugins I'm running on my server now...how did you structure the plugins folder?
Cool idea!
Are there any dependencies? Gives error on startup: http://pastebin.com/4htRDDEG
CB 1.1-R4