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
I'm getting this in my server log with most recent server update:
I was able to fix this on my end by editing plugin.yml inside the .jar file and modify the following:
From:
To:
Environment
Thanks,
LHammonds
FYI - A recent update of the server (R0.4 I think) now automatically replaces any spaces in plugin sub-folders with underscores. It turns out that it created a "plugins/Bottles_of_Wisdom" folder and no longer referenced the "plugins/Bottles of Wisdom" folder which had all the correct configurations.
Environment
Thanks,
LHammonds
thanks for the consideration man thats awsomew cant wait for the vault and area stuff you are awsome @pr1ke
Any chance you would make this open source?
Hey,
would be nice when the annoying break message could be complety switched off in config.yml. Or set off for standard and only who does /bottle silence gets the message displayed.
Hey guys,
Ive been busy lately and had no time to work on my plugins whatsoever, but I already started a rewrite from scratch which should fix everything and will be compatible with 1.7.
Any chance of a 1.7 update? It seems to work fine when starting the server, but randomly fills the console with a bunch of errors. I haven't figured out what starts the error every time, but once it was a player getting a /kit that included xp bottles. Trying to reproduce the error didn't work when I gave the kit to myself?
Thanks!!
Here is a sample of the error:
[Server thread/ERROR]: Could not pass event PlayerInteractEvent to Bottles of Wisdom v1.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) [spigot.jar:git-Spigot-1177] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1177] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) [spigot.jar:git-Spigot-1177] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) [spigot.jar:git-Spigot-1177] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) [spigot.jar:git-Spigot-1177] at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:208) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.PlayerInteractManager.interact(PlayerInteractManager.java:375) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:627) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.PacketPlayInBlockPlace.a(SourceFile:60) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.PacketPlayInBlockPlace.handle(SourceFile:9) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:647) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:259) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:530) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:442) [spigot.jar:git-Spigot-1177] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot.jar:git-Spigot-1177] Caused by: java.lang.NullPointerException at de.geckocraft.pr1ke.bottlingEXP.hitListener(bottlingEXP.java:393) [?:?] at de.geckocraft.pr1ke.listener.onAction(listener.java:29) [?:?] at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_45] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) [spigot.jar:git-Spigot-1177]
Just curious - I changed some of the default messages in the config, but they aren't changing in game. Is there a missing link in the code?
Also couple of typos in your help text you might want to fix:
under "bottle check" line you have the word "Bottley"
and under "/bottle convert" line you have the word "Entchanting"
under "/bottle silence" is the mispelled "recieve" and missing an apostrophe in "dont"
Also, it would be nice to have a default true/false setting for the bottle breaking chat message in the config file, since going through a stack of bottle quickly fills your whole chat window and I don't know how easily some players can find the /bottle silence command.
Thanks for the fun plugin!
Misty Cloudkidz
@LHammonds
"Its not a bug its a feature!"
I changed the behaviour in 1.0, because it caused some problems with chest and doors etc - the block simply wont interact ( a door isnt opened/closed after clicking it with a bow in hand ), so it only works when you are actually targetting nothing - this is not the kind of solution i prefeer, so this will be changed soon - its more or less a workaround
I'm testing 1.1 right now (on my local PC) and the messages are working perfectly now. However, I think a misplaced "end if" is cropping up. After enchanting some bottles, I am not able to break the bottles and no XP is transferred. It toggles between 36 and 37 bottles in my hand after trying to break them over and over. It does not matter if silence mode is on or off.
Thanks,
LHammonds
@LHammonds
Sorry! I totally missed that, gonna patch it asap
Thanks for the update. I'm now running BoW 1.0 but still have the problems reported in my last post. Verified on Linux and on Windows with default configuration in regards to displaying the text when typing the command "/bottle create abc"
I think the solution is to remove the spaces in the variable names in the config...but it has to be done in the plugin code.
Current default config.yml:
Recommended config.yml:
Thanks,
LHammonds
@dethlovesme
Sounds like a nice addition! Ill add it to the todo list
can you make it so the plugin hooks into vault and uses an economy plugin to create the exp bottles at a cost? and maybe make it so you have to be around a special structure or sign in order to do said tasks.lol just an idea, I havent tried the plugin before but i dont want to give this feature for free because it could create an inballance when coupled with plugins such as silkspawners.
Thanks Guy! let me know
Thanks again for the quick update. Version 1.87b is now installed. I have confirmed the mute, unmute and reload message are being pulled from the config. However, I am getting a "null" message when I type "/bottle create abc" instead of the "argument has to be a number" message.
I'm not sure if I have a typo in the config causing this problem or not. I'm too sleepy at the moment and will test a bit more tomorrow.
EDIT: 2013-09-30
Ok, I think this is a Linux / yml / parsing thing.
When I edit the file using vi editor (in Linux) it knows it is a YAML file and tries to color code the lines/text. It has a problem showing the "Arguments" line. I tried all kinds of tricks to get it to work but only 1 thing did. That was to remove the spaces from the variable names.
Example:
When the spaces were removed from the variable names, it had no problem color coding and parsing the lines.
The color code symbol also seems to be playing a part of the problem but I cannot use the & symbol. Has to be the § symbol for color to work.
The spaces and color symbol together might be causing the issue.
Thanks,
LHammonds
@LHammonds
Fixed!
Thanks for fixing it so quick. It also seems it was approved quickly too! Sweet.
EDIT 2013-09-29:
I'm now using 1.86b. I deleted my config.yml and let the plugin generate a new one to get the new messages. After I customized the messages and did a reload, I noticed some message changes took effect and others did not. I shutdown the server, check the config again and it looks OK. Started the server and tried again but noticed the following messages are not pulling the text from the config:
I believe these variables are the ones most-recently added.
LHammonds
@LHammonds
Fixed! 1.86b is in approval que
I'm now running 1.85b but noticed a small bug. When you type "/bottle silence" it shows the help page along with the silence notification.
The "/bottle" and "/bottle help" show the help pages as expected.
Thanks,
LHammonds
1.8b is in Approval que,
I added the help page, the commandless alternatives and fixed some bugs!
Thanks for using BoW :)