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 Oct 23, 2012@kforte318
To make super pick compatible i would need something to let NoCheatPlus know it is being used on a block.
Are you just using setInstaBreak or any other means ?
-
View User Profile
-
Send Message
Posted Oct 23, 2012@asofold
To be honest, I don't know how to make source code available. I don't think so, what kinds of custom events?
-
View User Profile
-
Send Message
Posted Oct 23, 2012@kforte318
Is there any source code available? Do you let any custom events fire for super pick use?
-
View User Profile
-
Send Message
Posted Oct 23, 2012@strontkever
Did you edit the plugin.yml at all before it happened? I would just delete the data folder and let it create a new config and see if it immediately happens again. Like I said, I don't know why the plugin would create a tab in the config.
-
View User Profile
-
Send Message
Posted Oct 23, 2012@kforte318
the tab wasnt in the first version, and it was inside the jar file in plugin.yml
-
View User Profile
-
Send Message
Posted Oct 23, 2012@strontkever
Oh, so it was another plugin messing with the superpick? Also, was the tab there when you first generated the config file? Let it regenerate and see if it's still there. I don't know how it could create itself with a tab in it.
-
View User Profile
-
Send Message
Posted Oct 23, 2012i will request if they can add this plugin on CompatNoCheatPlus, this plugin fixes issues between nocheatplus and other plugins
http://dev.bukkit.org/server-mods/compatnocheatplus-cncp/
-
View User Profile
-
Send Message
Posted Oct 23, 2012i tested: all seems fine but it doesnt break any blocks on consuming a voucher (same situation as v1.01)
EDIT i think i got it... NoCheatPlus blocks reporting as FastBreak...
it might have been the reason from the start, i cant tell
i just confirmed NCP blocks this, it works when i only give NCP permissions to not block this
though i cant turn this NCP function off
-
View User Profile
-
Send Message
Posted Oct 23, 2012it has a tab in front of this line: description: Allows a user to use a VouchersX-based command without using a voucher.
-
View User Profile
-
Send Message
Posted Oct 23, 2012@kforte318
i think it was a tab somewhere in plugin.yml
ill check the latest version now, ill report
-
View User Profile
-
Send Message
Posted Oct 22, 2012@strontkever
Try that DropBox link again, I think I fixed the issue where vouchers aren't expended (missing one ! in the code...)
-
View User Profile
-
Send Message
Posted Oct 22, 2012@strontkever
Ugh, I am so sorry about this. What is a /t error? I may have forgotten the line that updates voucher amounts, the "you blast away" is a good sign though. I'm on it.
-
View User Profile
-
Send Message
Posted Oct 22, 2012first try i got a /t error in plugin.yml, then it worked.
when trying superpick a player could just break blocks unlimited without consuming vouchers, (a admin but he doesnt have all permissions)
when i set my rank to member i bought some vouchers and it didnt break/consume any, though it said "you blast away" something
-
View User Profile
-
Send Message
Posted Oct 22, 2012@strontkever
Try that same download link I gave you before, both of those issues should be fixed.
-
View User Profile
-
Send Message
Posted Oct 22, 2012@strontkever
Okay, so Vouchers is telling players they can't break voucher shops when they aren't trying to, and it's saying they don't have any Superpick vouchers while trying to use them? (Sorry about all of this, not only can I barely test my account is currently lost in the migration so I can't even get on)
-
View User Profile
-
Send Message
Posted Oct 22, 2012players report they arent allowed to break voucher shops, while nog even close to any, neither they used commands from voucher..
players buying a superpick voucher, when using one they say they havent got any, while they do
-
View User Profile
-
Send Message
Posted Oct 22, 2012@strontkever
https://dl.dropbox.com/u/21181918/VouchersX.jar
Give this version a shot, I messed with the code for the SuperPick a bit.
-
View User Profile
-
Send Message
Posted Oct 22, 2012@kforte318
it acts like it works and consumes a voucher, but it doesnt break
its probably something with permissions since it works fine as admin
-
View User Profile
-
Send Message
Posted Oct 22, 2012@strontkever
Ah, sorry about the debug messages! I took care of those. When trying to use Superpick, do you get any messages or does it just not work?
-
View User Profile
-
Send Message
Posted Oct 22, 2012so far all work fine except the superpick.. buying a voucher and hitting something with an pick doesnt break the block, but as admin (all permissions) it does work.