Vouchers
VouchersX is a rewritten version of my long abandoned plugin Vouchers. For those of you unfamiliar, it allows admins to set up voucher shops, from which players can buy vouchers that allow them to do various things. I wrote it to give my players something to spend their ridiculous amounts of iConomy gold on.
Current Voucher Types:
- Protection ~ Allows a player to place a block only they (or an admin) can destroy.
- Teleport ~ Allows a player to teleport to another player.
- Heal ~ Allows a player to heal themselves or another player.
- Timeshift ~ Allows a player to chance the time of day.
- Parachute ~ A player can sneak in the air to negate fall damage.
- Resurrect ~ Heals a player to full health when they would otherwise die if they're sneaking.
- Superpick ~ Allows a player to break one block instantly.
- Sunshine ~ Allows a player to clear up the weather.
- Thunderpunch ~ Hitting a mob or a player will strike them with lightning.
Commands
- /vhelp ~ Get help with VouchersX and voucher types.
- /vlist OR /vlist all ~ Lists all voucher types a player has permission to use or all voucher types.
- /vcheck OR /vcheck [player] ~ Lists a player's vouchers.
- /vgive [player] [type] [amount] ~ Allows players to give each other vouchers.
- /vmodify [player] [type] [amount] ~ Allows an admin to modify a player's voucher amounts.
- /vsp ~ Toggles SuperPick mode.
- /vthunder ~ Toggles ThunderPunch mode.
- /vprotect OR /vprotect check OR /vprotect clear ~ Toggles Protect mode, checks how many protected blocks you have, or clears your saved blocks.
- /vtp [player] ~ Teleports a player to another player.
- /vheal OR /vheal [player] ~ Heals a player.
- /vtime day OR /vtime night ~ Shifts a world's time of day.
- /vsun ~ Removes storms from a world.
Permissions
- VouchersX.admin ~ Allows a user to build/destroy shops and destroy all protected blocks.
- VouchersX.use.[type] ~ Allows a user to use a certain voucher type.
- VouchersX.use.* ~ Allows a user to use all voucher types.
- VouchersX.buy ~ Allows a use to buy vouchers.
- VouchersX.free.[type] ~ Allows a user to use a command associated with a voucher without using the voucher itself.
Config Help
- Click here!
Creating a Voucher Shop
- Line One: Tag ([VouchersX] by default)
- Line Two: [type]
- Line Three: [price] OR [price]:[amount] (Example: 50:3 spends 50 gold and gives 3 vouchers)
- Line Four: Whatever you want (I personally write the associated commands) That's it! If done correctly, you will be sent a message and the first line will turn blue.
Notes*
- You must have Vault and an economy plugin (or just Vault, not quite sure how that works) for this to work.
- Voucher types are CASE SENSITIVE (the default types are all capitalized). This includes in the permissions nodes.
- Before saying you have an issue, make sure you're config.yml is set up properly.
-
View User Profile
-
Send Message
Posted Mar 30, 2013This is easily the most useful plugin I have come across for my server, it works fine on 1.5.1. If it stops working I will be very sad, please don't abandon this project!
-
View User Profile
-
Send Message
Posted Feb 16, 2013hi its me again,
i cant seem to give a player access to /workbench without vouchers interfering, as i want regular players to be able to buy a workbench voucher.
regular players have permissions:
essentials.workbench
vouchers.buy
vouchers.use.*
this other group inherits these permissions and has
-vouchers.use.workbench
this used to work, i dont know why not anymore more but it hasnt come to out attention for quiet some time...
its would still say that the group doesnt have enough vouchers
even when i give this group:
-vouchers.use.*
trying /workbench would respond with:
[vouchers] you dont have permission for this command
did any of the latest plugin updates change anything about the way permissions work?
strontkever
-
View User Profile
-
Send Message
Posted Jan 9, 2013Pardon my rudeness. Thanks for this plugin, kforte318! It's a nice, simple add-on to give players something to spend money on without loading one of the big Factions/Towny type plugins.
-
View User Profile
-
Send Message
Posted Jan 9, 2013More or less running on Bukkit 1.4.6R0.3. Nice plugin, once I fixed the permissions problem. None of my players could buy or use the vouchers. As a last resort, I looked inside the plugin .jar and saw that the permissions were in the: Vouchers.buy format, not the VouchersX.buy format as stated above. Gave everybody the Vouchers.buy node, and now the vouchers are working. I still get an error when entering vhelp from the server console: http://pastebin.com/WqV3WGGv
kforte318, will there be any further updates for this plugin? And/Or are you still planning to release the source code as I saw you mention before?
-
View User Profile
-
Send Message
Posted Nov 13, 2012awesome thanks!
-
View User Profile
-
Send Message
Posted Nov 11, 2012@strontkever
Just uploaded a fix, look for version 1.0.8 :) (Just needs to be approved)
-
View User Profile
-
Send Message
Posted Nov 11, 2012hi there again,
i still get debug messages for custom vouchers :)
-
View User Profile
-
Send Message
Posted Nov 6, 2012Just updated to 1.4.2, should be approved and available in no time!
-
View User Profile
-
Send Message
Posted Oct 29, 2012@kforte318
I can try to make some kind of tutorial and put it to bukkitdev, because this is a typical super pick with insta-break. No promise i can do it right now though...
-
View User Profile
-
Send Message
Posted Oct 29, 2012@asofold
If I can figure out how to get you source code, could you help me with that? Obviously I'd credit you for the update or whatever need be done.
-
View User Profile
-
Send Message
Posted Oct 26, 2012@kforte318
Using setInstaBreak will lead to a BlockBreak event right after it, so protection plugins are respected.
The problem is that using insta break and block break event does not allow to distinguish cheating from plugin driven insta breaking too well.
To provide compatibility i can imagine three ways:
-
View User Profile
-
Send Message
Posted Oct 24, 2012@strontkever
Give the group that you Don't want to need a voucher the VouchersX.free.(whatever type) permission node. They'll be able to use the command freely. There are still debug messages? I guess I missed a few. I'll go digging. I'll add a config reload once all of these other little kinks are worked out :)
-
View User Profile
-
Send Message
Posted Oct 24, 2012a config load (reload) command would be awesome
-
View User Profile
-
Send Message
Posted Oct 24, 2012how would i be able to grand command access to eg. /hat for a group, and use the voucher acces to /hat for a different group?
-
View User Profile
-
Send Message
Posted Oct 24, 2012@kforte318
oh thanks i didnt know about that.. i tested it and it seems to work right!
though theres again debug messages on every single command players execute
(checking against workbench,Workbench)
great plugin!
-
View User Profile
-
Send Message
Posted Oct 24, 2012@strontkever
If you assign a voucher to /workbench then it should work.
-
View User Profile
-
Send Message
Posted Oct 24, 2012Hi,
essentials has a /workbench command, which opens the workbench menu making u able to craft stuff as long its opened..
is there a way u can make a voucher also opening the workbench menu?
would be nice to have a voucher workbench for emergency/fun use
strontkever
-
View User Profile
-
Send Message
Posted Oct 24, 2012@strontkever
Oh! I know what I did. I'll fix it.
EDIT: Updated the jar from the DropBox link.
-
View User Profile
-
Send Message
Posted Oct 24, 2012@kforte318
i didnt edit the jarfile at start, it gave an error pointing at plugin.yml when it tried to start the plugin.. i just removed the tab from plugin.yml inside the vouchersx.jar then it starts fine...
i dont exactly know what u are asking, but the tab showed up on the second edit u did on the dropbox file. it doesnt end up in a config file, its already inside the jarfile, as the plugin isnt starting at all
-
View User Profile
-
Send Message
Posted Oct 24, 2012@asofold
I am using setInstaBreak, and I have not done custom events before, what I could do is have it set the block to air and then create the material naturally?