Inactive [ADMN] CouponCodes v2.0.5 - Add redeemable codes for items, money, and groups [1.0.1R1]

Discussion in 'Inactive/Unsupported Plugins' started by LaLa, Jul 6, 2011.

  1. Offline

    LaLa

    Support will only be on BukkitDev.​
    OldPost

    Coupon Codes by LaLa
    Version 1.5.3
    Requires: Bukkit's default permissions plugin (1.5.1+) or Permissions 3.x (1.5-)
    Downloads: 955 (updated daily)

    Coupon codes lets you create redeemable codes that can give players items, such as diamond or a pickaxe. You can also renew codes, so you don't have to enter them multiple times! iConomy has also been added, so your coupons can now give people money through iConomy!

    Features:
    • Add redeemable codes that can give items
    • Customize what the codes give the redeemer
    • Permissions!
    • iConomy support!
    • Lots of customizing!
    Download Version 1.5.3 | Dev. Builds | Older Versions
    Source on GitHub

    Config Example

    Code:
    #Learn more about how this config can be edited and changed to your preference on the forum page.
    author: LaLa
    config:
        iconomy:
            enabled: true
            couponcost:
                enabled: false
                price: 10
            has: true
        coupons:
            onetimeuseperplayer: true
        debug: false
    
    The only this you cannot edit is the value 'has'. This tells me, or the plugin, if you have iConomy or not. Changing it manually might cause...interesting things to happen.

    Obviously, if the default value is 'true' you can change it between that and 'false' but not 'yes' and 'no' or '1' or some other number without getting lots of errors.


    Commands
    • /coupon or /c can be used
    • /c redeem [coupon-code]
    • /c add [coupon-code] [id] [amount] [number of times can be used] - Leave blank for 1
    • /c add ic [coupon-code] [money] [#canbeuse] - New, used for creating an iConomy code
    • /c remove [coupon-code]
    • /c removeall
    • /c renew [coupon-code] [new # of times can be used] - Leave blank for default of 1
    • /c reload - Reload config
    Permissions
    • coupon.help - See the command list
    • coupon.redeem - Redeem an item (/c redeem)
    • coupon.add - Add a coupon code (/c add)
    • coupon.remove - Remove a code (/c remove)
    • coupon.remove.all - Remove all codes (/c removeall)
    • coupon.renew - Renew a coupon code (/c renew)
    • coupon.reload - Ability to reload config (/c reload)
    • coupon.* - Get all the coupon permissions
    Permissions in YML form

    Code:
    permissions:
        coupon.*:
            description: Gives access to all coupon commands
            children:
                coupon.add: true
                coupon.redeem: true
                coupon.remove: true
                coupon.remove.all: true
                coupon.renew: true
                coupon.reload: true
                coupon.help: true
        coupon.remove.*:
            description: Gives you permission to remove and remove all coupons
            children:
                coupon.remove: true
                coupon.remove.all: true
        coupon.add:
            description: Allows you to add a coupon
            default: false
        coupon.redeem:
            description: Allows you to redeem a coupon
            default: false
        coupon.help:
            description: Allows you to redeem a coupon
            default: true
        coupon.remove:
            description: Allows you to remove a coupon
            default: false
        coupon.remove.all:
            description: Allows you to remove all coupons
            default: false
        coupon.reload:
            description: Allows you to reload CouponCode's configuration files
            default: false
        coupon.renew:
            description: Allows you to renew a coupon
            default: false
    


    Planned Features
    • MySQL Support - ?
    • Multiple items from one coupon - planned for 1.5.4
    • Random coupon generator - planned for 1.5.4
    • Even more customizing - planned for 1.4 - DONE
    • Set how many times a coupon can be used - planned for 1.4
    • Make creating coupons cost iConomy money (optional) - planned for 1.3
    Bugs
    • Removing all coupons just displays the syntax
    • No confirmation when removing a single coupon
    Reveiws


    [​IMG]

    Changelog
    Version 1.5.3 - August 20 2011
    Version 1.5.2 - July 25 2011
    • Fixed remove all not working (configured to coupon.removeall by accident)
    • Added confirmation for removing a coupon
    Version 1.5.1 - July 17 2011
    • CouponCodes now supports the official permissions plugin (and only that! sorry permissions 3.x users! :confused: )
    Version 1.5 - July 17 2011
    • Similar to my other plugin WordRank, you can now give coupon specific permissions
    • Plugin epically re-done
    • Reloading the config works properly
    • Potential bugs in previous builds are no more
    • Customizing dropped, felt if it wasn't 100% complete might as well not have it
    • Source is open, and there are now comments explaining the different aspects of the code
    Version 1.4 - Friday July 8 2011
    • Customize almost every message
    • Set how many times a coupon can be used
    • Set if a player can only use a coupon once
    • Fixed where sometimes a coupon would not generate
    Older Versions
    Version 1.3 - Thursday July 7 2011
    • You can now charge people to make coupons
    • Color codes are now universal between coupons and various means of making them
    • More customizing (even more next update)
    • Added /c reload
    • Lots of little bug fixes
    Version 1.2 - Thursday July 7 2011
    • Added iConomy support
    • Fixed a handful of bugs with creatings/redeeming codes
    • Config added. Enable iConomy in there
    Version 1.1 - Wednesday July 6 2011
    • Fixed where if your inventory is full you will not get your item
    • Fixed where if you renewed a coupon that didn't exist it would not generate properly
    Version 1.0 - Wednesday July 6 2011
    • Initial release


    If you like my plugin, please like this post and/or like it on this plugin website
     
    lastern, odielag, gameswereus and 3 others like this.
  2. Offline

    ValBGaming

    It seems for me that the "/c removeall" command isn't working properly -- All it does it show the list of command syntax, could it be a command conflict? I would imagine though if it was a command conflict it wouldn't show anything at all though rather than showing the CouponCodes command syntax...

    Also -- A bit of a request -- Would it be possible to make it give a confirmation message when using "/c remove <id>"? Just so that there is a visual confirmation that a coupon has been removed? :)
     
  3. Offline

    embty

    Is it possible to make this work when poeple vote and write their vote number on forums they get items or a code?
     
  4. Offline

    ValBGaming

    Hey LaLa, I did a tutorial/review of this plugin. :)

     
  5. Offline

    LaLa

    Either it is a Command conflict or you do not have permission. Will fix next update


    I should get around to MySQL support which with a script should make this possible

    Thanks! I just wish I could watch it, Internet in this condo isn't the best.

    Updated to version 1.5.2 All bugs have been fixed.

    @ValBGaming
    Thanks again for the review, just watched it :D

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

    chaseoes

    @LaLa
    Any chance of adding BOSEconomy support? :D
     
  7. Offline

    ValBGaming

    No problem, happy to help! :)
     
  8. Offline

    Killer5362

    Idea: Put the coupon as an item to give to players.
     
  9. Offline

    kyuubireaper

    Hi, I was hoping you would think of supporting a mod I know. Its new so I'm sure he would be happy to have someone make it compatible. It is called multicurrency.

    Please help, I can use the command /c reload and I get a reload message. But when I type /c add 144 266 10 1
    it doesn't work. All I get is the help screen

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

    Johnnyboy118

    Hello, I am using coupon codes 1.5 from your older versions link, because I am using Premissions 3.1.6. However every time I start my server I get a severe error that says it could not load CouponCodes.jar, because mapping values are not allowed here
    in '<reader>' line 2, column 7:
    author: LaLa
    ..........^

    Any ideas what can be done? I really enjoy using your plugin and have already made more than 20 coupons as treasures for my users, any help would be greatly appreciated.
     
  11. Offline

    LaLa

    Could you post your config?
     
  12. Offline

    Johnnyboy118

    Sorry, I figured it out, as soon as I opened my config I saw that before the first character in the .yml (the "#") was a "d", so yea that obviously caused me some trouble. Thank you for your time and especially for pointing me in the right direction. (I do not think I ever would have found that otherwise). Thanks again!
     
  13. Offline

    LaLa

    No problem
     
  14. Offline

    Raycrash

    Is there a way to give more items with one code ?
     
  15. Offline

    kynian

    is there any way to make a coupon redeem for multiple items?
     
  16. Offline

    LaLa

    Yes, look at the commands at the top. the numbertimescanbeused is the number of times you can redeem a code. In the config is an option to allow people to redeem a code multiple times.
     
  17. Offline

    kynian

    Im sorry I dont think I made myself clear, I mean could I make a code that will give a player a full set of iron armor and the iron weapons/tools from just the one coupon?
     
  18. Offline

    LaLa

    I'll add that in the todo
     
  19. Offline

    alfw

    Mysql support tnx:)
     
  20. Offline

    gameswereus

    can you make a ton of codes for one coupon? I don't want to have to add a different code a lot.
     
  21. Offline

    cjbh1996

    @LaLa You should add a random coupon code generator. The syntax to create a coupon code with a random code would be like this:
    /c add [coupon-code | random] [id] [amount] [number of times can be used]
    so for example:
    /c add random 57 1
    this would generate a coupon that spawns one diamond block, and the code would be completely random.
     
  22. Offline

    cjbh1996

  23. Offline

    LaLa

    I've been on vacation. I got lots of plugin updating to do, so I'll add it to the planned features.

    1.5.3 is out, mostly just updating to latest RB

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

    Rossy

    Okay, so this works on 1060? Nevermind, just saw that the post was updated to 1060 ^_^ Awesome plugin! :D
     
  25. Offline

    joby890

    y is there no support for permissions 3.1.6 i would love to add this
     
  26. Offline

    LaLa

    1.5 and below has permissions 3.1.6 support...

    ..however; I do not add support for plugins no longer being supported/updated. You should consider moving to the new default permissions system.
     
  27. Offline

    joby890

    whats is different in the default to permissions 3.1.6
     
  28. Offline

    LaLa

    ...more plugins do and will support it (also has compatibility with permsissions 3.x, win win)
     
  29. Offline

    TheBrix

    i have a problem:
    Everytime i wanted to add a coupon, he just printed the help (/coupon OR /c etc.)
    i typed in: /c add 100 1 1 1
    can u help me?
    sry 4 bad english, i'm german ;D
     
  30. Offline

    Piket95

    yes its the same like me!
    I´m german, too :D
    We would be happy when you could fix this bug ;)
     
  31. Offline

    LaLa

    What version are you running?
     

Share This Page