Inactive [FUN/ECON] Vouchers v2.2.1 - Buy Vouchers for Features and Commands [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Kevin Forte, May 29, 2011.

  1. Offline

    Kevin Forte

    Vouchers: Let Your Players Pay for Features and Commands (Now With Aliases!)
    ~Version: 2.2.1~
    Download: [JAR]

    I have been constantly searching for a reason for my players to want to have a Lot of iConomy money. I couldn't really find that reason, so I made one. Introducing Vouchers, a way to let your players pay their way to a God-like status.

    Current Voucher Types:
    • Protection ~ Lets a player place a block only they (or an admin) can destroy.
    • Teleport ~ Allows a player to teleport to another player or an x,y,z coordinate.
    • Heal ~ Allows a player to fully heal themselves.
    • Timeshift ~ Allows a player to set the world time.
    • Parachute ~ Allows a player to hold shift to negate fall damage once.
    • Resurrect ~ Heals a player to full health when they would otherwise die if they are holding shift.
    • Superpick ~ Allows a player to break one block instantly.
    • Sunshine ~ Allows a player to clear up storms.
    • Thunderpunch ~ Hitting a mob or player will strike them with lightning.
    • Specify your own types to coincide with any command and create aliases for those commands.
    Creating a Voucher Shop:
    Show Spoiler

    1. Place a sign. On the lines, write:
    • Line One: [Vouchers]
    • Line Two: Voucher Type for Sale.
    • Line Three: Price of Voucher. OR Price of Voucher:Amount of Vouchers Being Purchased. (Example: 50:3 <-- Purchasing 3 Vouchers for 50 gold.)
    • Line Four: Whatever you want (I personally write the commands associated with the voucher or its purpose).
    2. That's it! If done correctly, you will be sent a message and the "[Vouchers]" line will turn blue.


    Using Commands as Voucher Types:
    Show Spoiler

    As of 1.5, you'll notice a 'Hooked Commands' section has been added to the config. To add a command, format it like this:
    Hooked Commands:
            Starting Amount for New Players: 0
            Include Arguments: true
            Command: money
            Alias: showmethemoney
            Warm-Up Time: 0
            Cool-Down Time: 0
            Description: Check how much money you have.
    This will create a MoneyCheck voucher for the command /money, which can also be used with the command alias /showmethemoney. If you do not wish to use an alias for a command, simply leave the section blank. If 'Include Arguments' is true, '/money' and any following arguments will expend a MoneyCheck voucher. If 'Include Arguments' is false, the command used must match the defined command for the Voucher exactly or a Voucher won't be used. The description is what is displayed when a player types '/vhelp MoneyCheck'. See the sample config.yml for an explanation of Warm-Up Time, Cool-Down Time, and Starting Amount for New Players.

    Show Spoiler

    [] = Necessary Argument
    {} = Optional Argument
    ** = Requires Permissions
    • /vcheck ~ Shows a player how many vouchers they have of the basic types.
    • /vcheckcom ~ Shows a player how many vouchers they have of defined command types.
    • /vtp [player name]/[x] [y] [z] ~ Use a Teleport voucher. Arguments can either be another player's name or an x,y,z coordinate.
    • /vheal ~ Heals the player completely with a Heal voucher.
    • /vprotect ~ Toggles protected block placing mode. Any block placed in this mode will exhaust a Protection voucher and will only be breakable by that player or a player with the Vouchers.admin node.
    • /vtime [day/night] ~ Lets a player set the time via a Timeshift voucher.
    • /vgift [player's name] [amount] [type] ~ Lets a player send a voucher to another player.
    • /vgive [player's name] [amount] [type]
    • /vsun ~ Removes a storm if there is one.
    • /vsp ~ Toggles superpick mode.
    • /vthunder ~ Toggles thunderpunch mode.
    • /vsave ~ Saves the current Vouchers and Shop locations.
    • /vreload [commands/vouchers/settings/all] ~ Reloads config.yml data.
    • /vhelp [sign/vouchertype (case sensitive)] ~ In-game reference for setting up Voucher Shops ('/vhelp sign') or display the description of a voucher type in the config.

    Important Notice:
    This plugin requires both iConomy/BOSEconomy and Permissions! Also, before you post that you are having problems, please follow this checklist:
    • 1. Read this entire post.
    • 2. Try deleting your /plugins/Vouchers folder and letting it recreate itself.
    • 3. Make sure you have not entered invalid values into the config.yml.
    If you are still getting errors and/or having issues after that, let me know. I appreciate it!

    Show Spoiler

    • Flight Voucher
    • Superpick Voucher
    • Thunderpunch Voucher
    • Changing the sign formatting so that you can buy more than one voucher at once.
    • BOSEconomy support.
    • Item Exchange support.
    • Adding more configuration options for the current Vouchers.
    • Adding a cost to create Voucher shops.

    Show Spoiler

    • Vouchers.use.(type in all lowercase) ~ Allows a player to use a Voucher. (Example: Vouchers.use.superpick)
    • Vouchers.setup ~ Allows a player to create/remove Voucher shops
    • in all lowercase) ~ Allows a player to use a Voucher command without needing the actual voucher.
    • ~ Allows a player to use voucher shops.
    • Vouchers.admin ~ Allows a player to destroy other players' Protected Blocks, use the /vsave command, use the /vgive command, and use the /vreload command.

    • Quick Bug Fix.
    • Added a /vgive command.
    • Switched to Bukkit based permissions.
    • Removed a couple obnoxious permission error messages.
    • Delayed economy plugin check.
    • /vhelp now shows whether or not you have permissions to use the Voucher.
    Show Spoiler

    • Plugin will disable itself if an economy plugin is not found.
    • Thunderpunch Voucher added.
    • Voucher descriptions added.
    • /vhelp [voucher type/sign] command added.
    • Bug fix.
    • MAJOR Bug Fix. Consider this the recommended build of Vouchers.
    • Fixed a misplaced "You don't have permission" error message.
    • Fixed an error given if you try and use /vreload without an argument or with too many arguments.
    • Fixed a possible NPE if your config.yml is outdated.
    • Fixed /vtp not giving an error if you use an incorrect length of arguments.
    • Major Code Cleanup.
    • BOSEconomy Support.
    • Added a Ton of new config options for ALL vouchers.
    • You can now choose to include the arguments of hooked commands or not.
    • Protected blocks are now saved on server restart. Whoops!
    • /vreload command added.
    • 'Vouchers.admin' Permissions node added.
    • Fixed more potential NPEs. Damn things always sneak up on me.
    • All data is now handled with the config.yml in the plugins/Vouchers folder.
    • '' permission removed due to redundancy.
    • '[type]' re-added.
    • '' permission added.
    • NPE problem REALLY solved. Seriously.
    • NPE problem (when using command vouchers) Finally solved.
    • All players are now notified when one uses a Timeshift voucher.
    • Command aliases have been added.
    • Fixed a bug that allowed negative Voucher cost values.
    • Fixed a bug that sent players (without permissions to use Resurrect or Parachute vouchers) a message whenever they took fall damage or died, regardless of whether they tried to use the voucher or not.
    • permission added for Multiverse servers.
    • The method of setting up shops to purchase more than one Voucher from has changed.
    • /vsignhelp command added for in-game shop setup reference.

    • Removed the permissions. Will be fixed in an upcoming update.
    • Fixed command vouchers never being depleted.
    • Fixed command vouchers not being loaded correctly.
    • Added a /vsave command to try and combat the problem of losing Vouchers and shops.
    • Added the ability to create signs that allow a player to buy more than one Voucher at a time.

    • Times that /vtime sets the world to changed for longer days/nights.
    • Players must be holding shift (sneaking) for a Resurrect voucher to be used.
    • (Hopefully) Fixed the issue with command voucher arguments.

    • Players must be holding shift (sneaking) for a Parachute voucher to be used.
    • Sunshine Voucher added.

    • First attempt at making sure Resurrect vouchers aren't used for fall damage that is already cancelled by other plugins. Good catch @Joy

    • Added a Superpick Voucher.
    • Added the '/vgift' command to send other players Vouchers.

    • Added Command-Based Voucher Types.
    • Added a Permissions node required for players to use their Vouchers.

    • Original Release.
    Bradley Hilton and Mitsugaru like this.
  2. Offline

    Kevin Forte

    Happens to the best of us. :p
  3. Offline


    I installed the download from the link in the OP, it still says 1.1.
  4. Offline

    Combat Wombat

    Is this plugin incompatible with LWC? I can create the voucher shops but no one can buy from them or use them.
  5. Offline


    Command for resurect ?
  6. Offline

    Kevin Forte

    None, happens automatically like parachute.

    Check permissions, I run the latest LWC and it works fine for me.

    I'll make sure the link/version in the file is correct.
  7. Any luck yet? :D
  8. Offline


    command for parachute ? it's reduc dammage for 1 minute ?
  9. Offline

    Kevin Forte

    Not just yet :p

    What? Read the description please :p It just automatically heals you to full health once when you die.
  10. 1.2.1 has not solved the fall-damage issue.

    For your testing, we use WorldGuard to disable fall damage.
  11. Offline


    Vouchers modif is not save after reboot ..

    (for /home ) and ticket is not post in /vcheck
  12. Offline

    Kevin Forte

    What? Do you mean the amount of Vouchers you have doesn't save?

    Darn it. I'll try and change the priority of the damage canceling after checking the priority in WorldGuard.
  13. Offline


    Yes, after a reboot, I do not have the vouchers, and then I do not see in / vcheck
  14. Offline

    Kevin Forte

    Try deleting the data folder and letting it recreate itself.
  15. Offline


    i delet vouchers.txt but it's such
  16. Offline

    Kevin Forte

  17. Offline


    if i deco/reco, i lost vouchers home.
  18. Offline

    King Rat

    Have you thought about a weather voucher? :D I made a command for the CommandBook /weather command, but it means our admins can't use it, and players are confused by what to type D:
  19. Offline

    Kevin Forte

    I apologize if this is rude, but is English your first language?

    I could work on it :p First I need to learn for myself how to alter the weather.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 16, 2016
  20. Offline

    King Rat

    Fair enough ^-^ I just love this plugin, and it's really popular on my server, so I can't wait to see how it developes :D
  21. Offline


    Just wondering... If people don't have the permissions to use these commands, will they still be able to with this? I mean, if they DID have permissions, why would they buy the voucher instead of just typing in the command itself?
  22. Offline

    Kevin Forte

    You do need the permissions. If you don't have the permission, you won't be able to use the command at all, even with a voucher. If you do have the permission, than you can use the command but a voucher is still needed.

    That's awesome to hear! I have to work out some bugs in DynamicFight and then I'll get to work on a new voucher type for this :p
  23. Offline


    I created a home vouchers but when the players of my server buys and they disconnected and reconnected, they do not have the vouchers

    PS : yes is not my first language
  24. Offline

    Kevin Forte

    What is the command (/ and all) and what did you write in your commands.txt?
  25. Offline


    This command is : /home

    My commands.txt :

  26. Offline

    Kevin Forte

    And they aren't saving? I really don't have any idea. Is your server all up to date and everything? I've really had no problem with the command vouchers before.
  27. Offline


    that not save just for commands.txt.
    Vouchers basic is save (superpick etc..)
    My all plugins is up date
  28. Offline

    Kevin Forte

    What do you have written on the sign?
  29. Offline


  30. Offline


    How would I enter in commands that need a name such as:
    /slay [name]
    /money pay [name] 5
    is there a certain format that I need to enter it into the command.txt?
  31. Offline

    Kevin Forte

    Do you mean you want them to skip allowing other players to enter the arguments?

    I really have no idea why they aren't saving for you. They save just fine for me I believe. Let me test it again and make sure and I'll get back to you.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 16, 2016

Share This Page