[INACTIVE][ADMN] redeemCodes v0.3 - give items to your players [798]

Discussion in 'Inactive/Unsupported Plugins' started by lolcoder, May 8, 2011.

  1. Offline

    lolcoder

    redeemCodes - give items to your players:
    Version: v0.3 This plugins allows Ops to create codes that allow your players to take items.

    Usage:
    /code nameOfTheCode idOfItems numberOfItems numberOfTimeTheCodeCanBeUsed

    Examples:
    /code name 1 2 1
    Will create the reedem code name with 2 blocks of 1, usable 1 time.
    /redeem name
    Will give to the player who sended it 2 blocks of stone.
    /once
    Will toggle the "once" option: a player can/cannot redeem more than once a code.
    Attention: on server restart/reload the list will be cleared.
    Features:
    • Make redeem codes
    • Make redeem codes redeemable one time
    Download the Plugin

    Video:



    Changelog:
    Version 0.3
    • Saving system changed in flatfile (it recognize the old format and it saves in the new)
    • Fixed the infinite redeems bug
    Version 0.2
    • Added message on successful redeem
    • Added saving and loading redeem codes
    Version 0.1
    • Releasing plugin
     
  2. Offline

    lolcoder

    It's really strange, for me it works. What command did you use for code?
     
  3. Offline

    game_stailer94

    can you add a console command and/or a File where you manualty add code e.x. from other programms or skrips? Because I want to write an PHP code that create redeem codes.
     
    Sandbird likes this.
  4. Offline

    UnrealEgg

    For some reason if you do:

    /code test 310 1 1
    then
    /code test 311 1 1

    (trying to make more items for the same code) it creates an UNLIMITED (I think) supply for the second code...

    Possibly a bug? Or am I doing soemthing wrong? Also, how do you make it so you can have multiple items from one redeem?
     
  5. Offline

    lolcoder

    @game_staller94: Working on it.
    @UnrealEgg: this is a bug. Working on it.

    I will fix the bug and release the v0.3 soon.
     
  6. Offline

    ArMi

    I have a problem. When I make code, I see this error : [reedemCodes] There is something wrong...

    I use this command : /code e174e175c 1 278 64

    Can anyone help me?
     
  7. Offline

    UnrealEgg

    Thanks for the update, is it possible to have several items per code? Oh and the ability to edit codes in a config file so I dont have to type them out in game :)
     
  8. Offline

    lolcoder

    @UnrealEgg: 1. No 2. not for now, but in the version 0.3.
    For me this command works. :\
     
  9. Offline

    AndrewFM

    Suggestions for a future release:

    Can you add the option for a comma separated list of redeem items? For example:
    /code leather 298,299,300,301 1,1,1,1 1

    Would create a redeem code for a full set of leather armor.

    Another suggestion is to use - to designate durability. For example, combining the above two suggestions:
    /code colors 35-1,35-14 16,32 1

    Would create a redeem code for 16 orange wool, and 32 red wool.
     
  10. Offline

    jor956

    Does this have permissions and/or groupmanager support?
     
  11. Offline

    lolcoder

    @AndrewFM: thanks for the suggestion, I will try for the 0.4.
    @jor956: no, you have to be op for create codes.

    @game_stailer94

    Version 0.3
    • Saving system changed in flatfile (it recognize the old format and it saves in the new)
    • Fixed the infinite redeems bug

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

    game_stailer94

    THX
    But the file is only written when the server is Reloaded, can you made it check the file every 30 secondes or so?
     
  13. Offline

    lolcoder

    @game_stailer94: not for now, sorry. I'm planning a real time system.
     
  14. Offline

    Naughtygeko

    Anyway we can get the codes to right/read from a text document that way if we need multiple codes for one item we can just copy and paste one code then modify it a bit?
     
  15. Offline

    lolcoder

    There is already a text document, is called redeemCodes.txt
     
  16. Offline

    lolzrofl

    You could just use kits instead, but its a nice alternative to those without essentials!
     
  17. Offline

    DemonCraft

    Video of how to use this please?
     
  18. Offline

    Kalais

    Any way you can make it so that certain permissions are redeemable as a code and added to the player who redeemed?
     
  19. Offline

    MatCat

    Ok I just found out it allows you to /redeem many many times, it should be capped at 1 per person
     
  20. Offline

    lolcoder

    @Kalais: I don't think so. Sorry.
    @MatCat: I think this is the way it should work. I create a poll, let's see what the users think.

    Edit: Sorry... how do I can create a poll?
     
  21. Offline

    Minecrafta2z

    Really love the plugin and have gone through this tread now.. Sorry to ask but is it possible for more then one person to redeem the same code? I would really love to use this as a quest based plugin type of a thing. One would get to the end of a "quest" find a sign with the code on it and punch it in.. But this would only work if it could be done by all of the players. Thanks for the great plugin
     
  22. Offline

    lolcoder

    Thank you, just do:
    /code nameOfTheCode idOfTheItem numberOfItems 1000000

    this code will be usable 1000000 times.
     
  23. Offline

    Minecrafta2z

    Ahh I see thanks for the help! Only problem being people would be able to just spam it. So is there anyway it can be made to be redeemable buy infinite people but only once per person?
     
  24. Offline

    lolcoder

    I can add this feature, but then if another person want to make a code reusable...
    I'm sorry, I'm searching a solution.
     
  25. Offline

    Minecrafta2z

    Couldn't they just name the code something different?
     
  26. Offline

    jamescosten

  27. Offline

    Jopi

    Hey, could you add infinite reedems when the max-redeem is -1?

    Jopi
     
  28. Offline

    lolcoder

    @Jopi: done.
    @Minecrafta2z: I don't understand.
     
  29. Offline

    MatCat

    Yeah I would love to use this as incentives for people to follow my server on twitter, facebook, youtube, etc, and give out codes in them where they get stuff for using / following us, but I want it where those codes are pretty much unlimited but can only be used once per person, that is not possible currently, as if I create a code with say... 50000 redeems, it will last a while but a player could just sit there and redeem it over and over and over.
     
  30. Offline

    lolcoder

    @MatCat What do you suggest? Should I make this by default?
     
  31. Offline

    Luwiego

    You should make that user by finding the code could use it only once. Because there should be opportunity for other users to use it.
     

Share This Page