[FUN] RC v1.1 - Redeem codes to get items [953]

Discussion in 'Inactive/Unsupported Plugins' started by beatcomet, Jul 13, 2011.

  1. Offline

    beatcomet

    RC v1.0 - Redeem codes to get items!
    Version 1.1 [Download] [Source] [Github] (CB 953)
    Version 1.0 [Download] [Source] (CB 953)
    Description:
    This plugin allows player to redeem codes created /generated by the admins.​
    Features:
    • Create codes easily
    • Redeem codes to get and item
    • Randomly generate codes
    • Permissions required!
    Commands:
    • /code set <code> <item id> <amount> <amount of time it can be used> - make a simple code. (permissions node : code.set)
    • /code remove <code> - remove a code from the code list. (permissions node : code.remove)
    • /redeem <code> - redeem a code.
    • /code generate - generate a random code with random item and amount. (permissions node : code.generate)
    • /lng <length> - Change the length of the randomly generated code (default: 8) (Permissions node : code.length)
    • /code status <name> - Check amount of uses left for the code (Permissions node : code.status)
    Change log:
    Version 1.1
    • Added a new command : /lng <length>
    • Changed randomly generated codes to uppercase letters
    • Added numbers support
    • Fixed some mistakes I did in v1.0
    Version 1.0:
    • First release
    To do (open)

    • Improve the code generator (configurable length) and add number support
    Progress : Done! (will be introduced in v1.1)
    • change to upper case for better look
    Progress : Done! (will be introduced in v1.1)
     
    kahlilnc likes this.
  2. Offline

    Sapir

    Dude you're awesome !!!
    nice plugins :D
     
  3. Offline

    beatcomet

    Change log:
    Version 1.1
    • Added a new command : /lng <length>
    • Changed randomly generated codes to uppercase letters
    • Added numbers support
    • Fixed some mistakes I did in v1.0
     
  4. Offline

    SpencerB

    Seems pretty neat, I'll give it a try.
     
  5. Offline

    kahlilnc

    I use this now!!! nice
     
  6. Offline

    beatcomet

    Thanks for the suppot guys, if you get any errors or anything, post them here
    https://github.com/beatcomet/Bukkit-plugins/issues/new
    and I will do my best to make it better
     
  7. Offline

    kahlilnc

    So amount it can be used is amount it can be used globaly by everyone else?
    Example: /code set ###-#### 33 1 2
    So only 2 ppl can get that reward? Is that right?
     
  8. Offline

    beatcomet

    Here is what the example you gave will do :

    The code is ###-####, the item id is 33 and the amount given is 1 ,
    it can be redeemed twice.

    As I look at it now, I think I will make it redeemable once per player.
    Thanks :)
     
  9. Offline

    kahlilnc

    Oh yeah once per player and how many ppl can redeem it?
     
  10. Offline

    beatcomet

    For the code you wrote, 2.
    I am working on one per player as we speak :)

    You can also generate some random codes, for large server event :)
     
  11. Offline

    kahlilnc

    Yeah um could you add code list as a command to see the codes cuz my chats gets spammed sometimes and I cant remember the generatred ones. And is the generated on just a code that is generated for you nothing else?
     
  12. Offline

    beatcomet

    Code List is a good idea, but it will take a while since i'm starting to recode the plugin.
    Generated codes can be used by anyone, you can use the generation function for server events to get random items.

    I'm working as hard as I can to make sure the recoded plugin will come out as soon as possible and function even better :)
     
    kahlilnc likes this.
  13. Offline

    wassilij

    I love this!

    But when someone type /redeem ...
    its dont work and i get this error in the console:

    Code:
    2011-07-15 10:45:01 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'redeem' in plugin RC v1.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at me.beatcomet.RC.RC.onCommand(RC.java:316)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    i reloaded the server now its work ..

    and ehm, how i can make it, that 300 times a code can be redeemed, but only one per user?
     
  14. Offline

    kahlilnc

    He is adding that soon, he is redoing the complete coding.
     
  15. Offline

    Maniac

    Whats the permission node for /redeem? code.redeem? you dont have it up there :) But i love this plugin!
     
  16. Offline

    RIM28017013

    Doesn't work - "An internal Error ocurred while trying to perform this command" pops up whenever I start a command with "/code". Any thoughts on why this is/how to fix it?
     
  17. Offline

    beatcomet

    The code is very messy and i'm working on it.
    I started recoding to make it more useful and more lightweight.
    I'm aware to that errors, it's all thanks to my bad coding.

    I started making the plugin with just 2 commands and as I added every other function it all got messy and buggy.
    Stay tuned, I'm about to finish the recoding and testing.
     
  18. Offline

    darth2499

    this is nice just need to get it 1 use per player and maybe iconomy support would be nice!
     
  19. Offline

    beatcomet

    Thanks, I'm working on it (currently recoding the whole plugin and adding some changes and custon error codes)
    The one use per player will be added after I will finish recoding (In the same version!).

    About iConomy : I will add iConomy support at version 1.3 (after the next update).

    Once again thanks for supporting me and not getting angry because the recoding takes a long time (I'm a rookie so it's even harder for me :))
     
  20. Offline

    darth2499

    no worries! as long as i know it will be done take your time, i know how annoying coding can get! i am an Xcode coder myself!
     
  21. Offline

    beatcomet

    Thanks for the understanding, I just finished improving the data storage system and code removal, as well as a shorter code generator (from 120 lines of code in the source to just 7).

    The progress : 49% (going to sleep now it's 2:25 am here :))
     
  22. Offline

    Rawhide15

    Hey great plugin! Actually what made me think of this

    Is there any way I could sync the codes with a website? Like say I set up a shop on the server website and sell every item. (Still checking if legal) When they buy it I want it to give them the code and they can redeem it in game. Is that possible to do?
     
  23. Offline

    beatcomet

    It is possible to do but I am not the one who can do it (sadly).
     
  24. Offline

    minecraft124_

    Can we make it so a code can be redeemable infinite times by any player?
     
  25. Offline

    beatcomet

    Well some people said they want the code to redeemable once per player.
    You can put a high amount of uses once you set the code and it will do pretty much the same...
     
  26. Offline

    minecraft124_

    Ok. i'll do that, thanks!
     
  27. Offline

    beatcomet

  28. Offline

    joby890

    i was thinking could u add a after so many day/month they auto renew that would be great
     
  29. Offline

    thetank332

    This is so cool
     
  30. Offline

    -_Husky_-

    Hey guys. just updated this for u guys :D as this is Inactive
     

    Attached Files:

    • RC.zip
      File size:
      4.1 KB
      Views:
      0

Share This Page