Bottles of Wisdom
Bottles of Wisdom
Welcome to Bottles of Wisdom! This Plugin allows your users to Store their Experience Points in Bottles, if the User wants to use the Experience, he simply breaks the Bottle by throwing it. If you want to put XP in bottles, you can either use the commands, or hold a glass bottle in your hand and click left or right - which is the completely commandless alternative.
Features
- Store Exp in Bottles, so you dont loose it upon Death
- Sell/Trade Experience in Bottles!
Commands
- /bottle silence - turns of the message received when breaking a bottle
- /bottle check - tells you how much Exp you have, and how much Bottles you can create
- /bottle max - creates Bottles, until you run out of Exp/Glass Bottles
- /bottle create [number] - creates the specified Number of Bottles - if you have enough Exp/Glass Bottles
- /bottle reload - reloads the config
- /bottle convert - converts bottle of entchanting to bottles of wisdom
- /bottle - shows the commands you have the permissions for
Permissions
OPs have all Nodes by Default
- bottle.max - allows the use of /bottle max
- bottle.bypass - allows the Creation of Bottles without the need to have Glass Bottles
- bottle.check - allows the use of /bottle check
- bottle.create - allows the use of /bottle create
- bottle.reload - allows the use of /botlle reload
- bottle.fill - alows the user to use the left click with bottle - which equals /bottle create 1
- bottle.maxfill - allows the user to use right click with bottle - which equlas /bottle max
ToDo
- Implement Vault
- Add some sort of Limitation of Area
@LHammonds
Ill change that in 1.8b, it makes more sense to give the /bottle to the help page.
I also try to give 1.8b a commandless alternative, so you dont need commands at all, which seems to be a nice feature
Thanks for the feedback and have fun using BoW :)
I realize the silence command is currently the root command. However, it makes more sense to have it as a specific command and leave the base command as the help page. That is why I suggested the silence command so that function can be moved from the current root command so the help command can be placed there instead.
Version 1.7b is now part of my server as of version 0.2.0 of the server. I try to avoid requiring people to use commands as much as possible so I create command signs @ spawn buildings wherever possible and this plugin fits well with it. I will eventually make a "wizard shop" with this featured in it.
Thanks,
LHammonds
@LHammonds
Thanks for your Testing and your Comment!
I will try to get the Help page into the next update, and add some more customizable chat messages.
To your suggestion for /bottle silence, i already implemented a command that silences the "Bottle breaks message" ( /bottle ), or am I missunderstanding your suggestion?
Thanks for the Feeback, have fun using BoW! :)
I did some more tests with Bottles of Wisdom v1.7b
Level 30 test (partial)
Level 30 test (max)
Level 60 test (max)
Config test
Made the following change:
Original:
Modified:
Noticed the color codes did not work. Also noticed there is no entry in the config for the above text "[BoW] Reloaded!"
Modified #2:
Color codes worked!
Config test success!
Console Messages
There were no errors or blow outs while testing but I did notice the internal version number has not been updated.
I fixed that on my end by editing plugin.yml and setting it to 1.7b
Suggestions
Suggestion #1: Add a silence command for the toggle ability.
/bottle silence
NOTE: I would think that permission to use the plugin would also grant the ability to toggle silence so additional permission node would not be necessary.
Suggestion #2: Add in-game help so that the following commands show the help page(s):
/bottle
/bottle help
Here is an example of what it could display:
NOTE #1: I would think that permission to use the plugin would also grant the ability to toggle silence so additional permission node would not be necessary.
NOTE #2: The display of help for commands should only show what the user has permissions for. So if they don't have the "reload" permission, it should not show up in help.
Test environment
OS: Windows 7, 64-bit
Java: Sun Java JRE 1.7.0_25, 64-bit
CraftBukkit: version 1.6.2-R1.0
Other plugins: Bottles of Wisdom 1.7b, PermissionsEX 1.20.2, Essentials Pre2.12.1.6
Thanks for creating and sharing the plugin as well as being so nice to consider changes from the community. As of 1.7b, it seems like a perfect time to integrate it into my server.
LHammonds
@radlab
Sounds like a good Idea! I will add it to the ToDo list
Simple suggestion that would make this plugin more "commandless" :
Holding right mouse button to fill a bottle with XP while targetting no block (since I suppose there could be a conflict while trying to fill a bottle with water). Adding a filling sound would be nice too.
@Exll
Fixed!
Bugs:
CFG: exp-taken: 50 exp-given: 50
Don't be OP!
1.
/xp 200 (4*50) Exlll /bottle check -> 199 XP
2.
/xp 200 Exlll /xp 1 Exlll /bottle check -> 200 XP
Holding 1 empty glass bottle: /bottle create 1 -> You must hold enough Glass Bottles in your hand to do that!
Holding 2 empty glass bottles: /bottle create 2 -> You must hold enough Glass Bottles in your hand to do that!
Holding 3 empty glass bottles: /bottle create 3 -> You must hold enough Glass Bottles in your hand to do that!
Holding 4 empty glass bottles: /bottle create 4 -> works (getting 4 XP-bottles a 50 XP)
So it seems you have to hold enough XP bottles to actually run /bottle max to be able to use the /bottle create <number> command.
This is a problem if you have 3250 XP and want to create bottles, but you can't because you can't hold 65 bottles (50XP per) in your hand.
Reload command would be nice :P
Btw. for all the others: custom colors work with §Code
just latin characters are supported yet.
@LHammonds
Thanks alot for the Feeback and your Ideas!
I already started to Code the "give less exp then tasken" feature, while i found the bug - and gave the Bug the highest Priority right now, I think i already found the Error.
found another Error wich bothers me alot, you dont always get the right Amount of EXP taken - sometimes the Amount is 1 Exp bigger then it should - especially at 300+Exp involved, I think this is coming from the Calculations and the rounding.
To your Idea of, not giving 100% Exp back to the Creator, I already had the Idea while I was planning the Plugin, but I thought of something Like, You pay 11 Exp for one Bottle and get 10 Back while destroying it, because I dont want to bring Percentages into my calculations, it would cause more roundings, leading to more inaccuracy - wich I want to avoid. But ill maybe implement in a later Version, parallel with my Idea.
My Plugin simply Overrides the Code, bukkit starts when a Exp Bottle is Destroyed, stopping Bukkit from Creating EXP Orbs, and just give the Thrower the Exp, wich is simpler. But I take a look at creating a unique Item, so it wont interfere with the exisiting bottle, this is getting the highest priority - right after I fixed the Bug.
Thanks again for your Feedback! Always appreciated
This sounds like a great addon for any server. I know you have a ToDo list but I will go ahead and document my test results and thoughts with version 1.1b
I did a quick test to see how it works and found a potential issue.
I typed the following commands:
This set my experience level to 30
Now I type:
This looks like 273 experience is missing. But to verify, I go ahead and type the following:
Breaking all 55 bottles at my feet gets me up to level 24.8
When I do another check, this is what I get:
My actual experience is 550 exp based on the /xp command
For the check text, I would recommend the following text and capitalization:
Also, this plugin modifies the base enchanting bottle. I'd recommend leaving that alone and simply attach lore (e.g. Bottle of Wisdom) to the bottle if necessary to make it unique. This will allow plugins such as FloAuction to show the difference between legit bottles that were found in the game verses the bottles created using this plugin. You mentioned that this plugin modified the "behavior" of enchanting bottles...but I'm not sure why you would do that.
Although the xp calculation is bugged, it does present a good idea for a configuration option. For role-playing, everything needs to have advantages and disadvantages and being able to bottle up every single xp point might not be desirable to everyone. Having an option to apply a loss-factor in the bottling process could be a good thing. For example, having a variable called "ConversionCost" set to 0 would mean you can bottle 100% of the xp without any loss. But change that value to 0.05 and the conversion then takes on a 5% conversion cost. If you had 1000 xp, you would only be able to bottle about 950 xp and lose 50 in the process (generally speaking)
Test Environment:
OS: Windows 7, 64-bit
Java: Sun Java JRE 1.7.0_25, 64-bit
CraftBukkit: version 1.6.2-R0.1 BETA (Build 2838)
Other plugins: PermissionsEX 1.20.1, Essentials Pre2.12.1.2
Thanks,
LHammonds
This is a really awesome plugin, good job.
@SwiftSwamp
My Plugin alters the Behaviour of the Bottles of Entchanting, but i can try to use a unused item, or rename the Bottle of Entchanting if its a wished feature. In my opinion, i never really used the old Exp bottles, and tried to add a better functionality.
Does this interfere with the current Exp Bottles or does it rename bottles to Bottles of wisdom or the lore or something to keep it separate?