Drinks
DrinksCMD - Get drunk with your friends!
Have you ever wanted to get drunk with friends in minecraft?
Now you can! My plugin adds a lot of configurable drinks!
DrinksCmd version:
Features:
- Get drunk with your friends!
- Enjoy drinking a lot of drinks!
- Pay for drinks!
- Setup sign shops with drinks!
- Permissions
- Fully configurable effects & costs
Commands & Permissions:
Command | Info | Permission |
---|---|---|
/beer | Drink beer! | drinks.beer / drinks.admin / drinks.client |
/milk | Remove all potion effects! | drinks.milk / drinks.admin / drinks.client |
/vodka | Drink vodka! | drinks.vodka / drinks.admin / drinks.client |
/wine | Drink wine! | drinks.wine / drinks.admin / drinks.client |
/cocacola | Drink cocacola! | drinks.cocacola / drinks.admin / drinks.client |
/monsterdrink | Drink monsterdrink! | drinks.monsterdrink / drinks.admin / drinks.client |
/tequila | Drink tequila! | drinks.tequila / drinks.admin / drinks.client |
/brandy | Drink brandy! | drinks.brandy / drinks.admin / drinks.client |
/coffee | Drink coffee! | drinks.coffee / drinks.admin / drinks.client |
/champagne | Drink champagne! | drinks.champagne / drinks.admin / drinks.client |
/rdrinks | Reload configuration file! | drinks.admin |
/drinks | List of available drinks! | drinks.admin / drinks.client / drinks.createshop |
Create sign shop! | drinks.admin / drinks.createshop |
Creating a shop:
If you want to create a shop, simply follow these steps:
- Give yourself drinks.createshop or drinks.admin permission
- Place a sign
- In first line write (it's case sensetive!): [Drinks]
- In second line write drink name (you can check list of them with /drinks command) for example: beer
- In third line write cost of the drink (it's custom, no matter what you typed in configuration file) for example: 5
- In the last line type whatever you want (you can leave it blank) for example: The best beer!
- Click done, you should see a message on your chat saying that you setted up a shop
- Right click the sign to buy a drink! (you need drinks.client or drinks.admin or drinks.[drink name] permission to use the shop)
Example of a sign shop:
Configuration:
Requirements:
- Vault
- Any economy plugin compatible with vault
- Any permissions plugin compatibbale with vault
Installation:
- Stop your server
- Install all required plugins (Vault, Economy plugin and Permissions plugin)
- Drop Drinks.jar to your plugins folder
- Start your server
- Add permissions (drinks.client, drinks.createshop, etc.) for groups or/and players
- Enjoy Drinks!
To do:
- Update for:
CB 1.3.2- ready :)CB 1.5.2- ready
- Add more drinks!
vodka - work in progress...ready to test!wine & 6 moreready to test!
Add config!ready to test!Cmd versionready to test!- some secret stuff
Changelog:
v1.0
- Initial release.
v1.1
- Added McStats tracker.
v2.0
- Players now drop glass bottle after drinking.
- Added vodka.
v3.0
- Added configuration:
- cost
- customizable potion effects (power and time too)
- Added 7 drinks:
- wine
- cocacola
- monsterdrink
- tequila
- brandy
- coffee
- champagne
v3.1
- Added tutorial to configuration file.
- (Delete Drinks FOLDER from your plugins folder if you want to see changes in configuration)
CMD v1.0
- Added "dropbottle" option in config
CMD v1.0.1
- Updated for CB 1.5.2-R1.0
- Added new effects (Invisibility and Night Vision)
- (Delete Drinks FOLDER from your plugins folder and restart/reload the server if you want to see changes)
CMD v1.2
- Redesigned permissions to make them user-friendly
- new permissions:
- drinks.client
- drinks.createshop
- /rdrinks command - reload configuration
- /drinks command - list of available drinks
- Added sign shops
Tutorial in Portuguese made by AbsintoJ:
More stats at: http://mcstats.org/plugin/DrinksCMD
[02:24:08 ERROR]: Could not pass event PrepareItemCraftEvent to Drinks v2.0 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPreCraftEvent(CraftEventFactory.java:781) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.Container.a(Container.java:639) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.ContainerPlayer.a(ContainerPlayer.java:75) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.InventoryCrafting.setItem(InventoryCrafting.java:130) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.Slot.set(SourceFile:79) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.Container.setItem(Container.java:454) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:2000) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot.a(SourceFile:23) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot.a(SourceFile:9) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_172] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_172] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:696) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:371) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:651) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:555) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172] Caused by: java.lang.NullPointerException at sg.pyrolabs.drinks.Drinks.onItemCraft(Drinks.java:353) ~[?:?] at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e] ... 21 more
Plugin work for me well on 1.8.3 Spigot/Bukkit server, but there is a lot of bugs on plugin, I tried to fix them but I can't without source code, and decomiling plugin is so painfull. Without source code I can't do that... Hope this guy will answer... :D
dose it still work?
Also, I'd be grateful for your original sources. Decompiling is not ideal decision - some errors are present yet.
Update: I fixed error, finally. It was an error-report in console each time, when player right-clicked any sign. Here is decision:
Important bug found. Each time I tried to edit config.yml, it gone to reset and my settings was not apply. I decompile all classes, explored the code and found wrong block. Here is:
As you know, the config folder is DrinksCMD. But here is folder named DrinksItem. This is cause plugin decided that config.yml is absent and rewrote it time-to-time. And I couldn't edit prices, effects and all other settings. I fixed it in my file. So fix it in your.
P.S. Sorry for my poor english.
@MM1990d
Are you open to the idea of having custom drinks being defined in the config? Like, using a template to define our own drinks in the config?
Sorry that I left the plugin again, I was really pissed off because I screwed up my linux system & lost all my data. I'll try to continue soon.
@CroOne123
I'll add a feature for this in next version.
@DeadlyElite
I'm not planning to add recipes, at least not before finishing other stuff that I want to do.
Could you add crafting recipes?
how to make so players can buy only with signs drinks not with /commands?so i mean that players can not use /commands for this plugin,only signs?
Oooo. Ok thanks a lot! Not that much a problem, but thanks! :D
@AznChrisX
It's because you typed in 5.00. Type in just 5 and it will work okay, I'll try to fix this bug once I'll have some time, thanks for report.
When I use sign shops (permissions added and set already) I get this error in console (even if I just used OP and no permissions) while using craftbukkit 1.6.2. When I click the sign nothing happens in game but the message on the bottom appears in console. What it says exactly on the sign is: [Drinks] wine 5.00
2013-07-15 08:16:33 [SEVERE] Could not pass event PlayerInteractEvent to DrinksC MD v1.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInte ractEvent(CraftEventFactory.java:192) at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInt eractManager.java:373) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java :630) at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296 ) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java :118) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:5 90) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:2 26) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:4 86) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: java.lang.NumberFormatException: For input string: "5.00" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at me.mm1990d.DrinksCMD.DrinksListener.onPlayerInteract(DrinksListener.j ava:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:425) ... 16 more
@dotapurex1
Nope, at least not yet.
Is this a villager plugin where you can buy drinks from them?
how to give everyone vodka :D
@MM1990d
kk thank you soo much for this plugin :)
@AndyAdsffm
I have one bug to fix in DrinksCMD and then I'll do the item update. I'll start working on it once the stable version of bukkit is released.
Please Release The Item Update :) I really want to drink while holding specific item not just with commands.
It took one day more than expected, but here it is! Drinks 1.2 with sign shops is now released!
Vote what would you like to see first: http://strawpoll.me/148275