[FUN] Code Mania v1.0 - Redeem codes the easy way [1000]

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

  1. Offline

    beatcomet

    Code Mania - Redeem codes the easy way!
    Latest Version : Version 1.0 [Download] [Source] [Github- config soon!] (CB 1000)
    Description :
    Simple and light weight plugin, allows players to redeem codes and get items. ​
    (The plugin is a rewrite of RC)​
    Features:
    • Easy to install and use
    • Optional permissions (defaulted to OP)
    • Random code generator (even better than the first one!)
    Commands and permissions:
    • /code set <code> <id> <amount> <uses> - command used to set a new code (code.admin.set)
    • /code remove <code> - command used to remove a code (code.admin.remove)
    • /code generate <length> - command used to generate a random code (code.admin.generate)
    • /code status <code> - command used to check the amount of uses left (code.admin.status)
    • /code list - command used to get the list of all the codes (code.admin.list)
    • /redeem <code> - redeem a code (no permissions required)
    Change log:
    Version 1.0 :
    • First release after the rewrite
     
    Raycrash, woodzy and kahlilnc like this.
  2. Offline

    kahlilnc

    THanks for this.
     
  3. Offline

    beatcomet

    If there are any bugs, send a commnet containing the consle log
     
  4. Offline

    tommygoesha

    iconomy support :D?
     
  5. Offline

    beatcomet

    comming soon :)
    I'm going to add BOSEconomy and Essentials economy support as well
    Working on it right now :)
     
  6. Offline

    Teldelariel

    Do the codes generate and show up in chat or are they an admin only heads up
     
  7. Offline

    Raycrash

    could you add a command to let every player use a code only once ?
     
  8. Offline

    NikkyyyHD

    Really smart idea, I like!
     
  9. Offline

    beatcomet

    Only the sender (The user with the admin permissions or an OP if no permissions plugin found) gets the code message.
    Every code is redeemable once per user already...
    thanks for the support, iConomy support coming soon !
     
  10. Offline

    Teldelariel

    Is this supportable for mods/plugins? ie; fly, god and certain commands. eg; I want to use this plugin to generate a code a player can redeem for use with my packages/mods which are purchased to use in my game.
     
  11. Offline

    beatcomet

    I don't really understand what you mean, correct me if i'm wrong :
    You ask if It can be used to give people who redeem certain type of codes permission to use some features?
    Well this plugin supports only item giving at the moment, and iConomy support will be added soon but I don't think I can make this type of mechanism.
    I think you need something like this one : http://forums.bukkit.org/threads/ec...-make-any-plugin-an-iconomy-plugin-818.19349/

    It's for build 818 but I think someone will takeover the project and update it.
     
  12. Offline

    Raycrash

    Installed this now on other server, so lets spread some codes hehe :D

    Thanks mate and Iconomy is welcomed-

    edit: this plugin only allows 1 item and 1 amount of that ?
    is therea way to add multiple items to 1 code ?
    like (x,y),(z,w)
    giving item x , z number of times and item y , w number of times.

    Edit2: tried, but it doesnt seem to be working
    /code set isitalie? 354 1 25
    should give 1 cake for 25 different users... but when it is entered it just gives me an "Internal" error ?
    It seems that I can't enter my own codes? :X
     
  13. Offline

    sfxworks

    Mysql support?
     
  14. Offline

    Raycrash

    Code:
    ... 12 more
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    at me.beatcomet.CM.CM.onCommand(CM.java:288)
    at me.beatcomet.CM.CM.getUses(CM.java:122)
    Caused by: java.lang.NullPointerException
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    org.bukkit.command.CommandException: Unhandled exception executing command 'redeem' in plugin CodeMania v1.0 
    The error I get.... should I post other plugins too ?
     
  15. Offline

    CainFoool

    @beatcomet

    21:49:35 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'code' in plugin CodeMania v1.0
    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:312)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at me.beatcomet.CM.CM.onCommand(CM.java:226)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 6 more

    I am looking to use /code in console.
     
  16. Offline

    beatcomet

    Sorry for the errors, I'm still learning so...
    Right now I got tons of homework, and I guess I'll have to recode it again to remove all the errors and add
    some database support.
    I will also add more than one Item per code, so thanks for the suggestion :)

    I can't add mysql support since I don't know how. But the plugin will use database (minidb) to store data after I will recode it.

    Another error caused by my bad coding...
    Sorry man, I will recode the plugin as soon as possible.

    I will fix it as soon as possible

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

    CainFoool

    @beatcomet

    >code generate 5
    21:51:14 [INFO] Prohibited is console use!

    I typed that into console and that message came up.
    Is it any way possible to make this work in-console as well as in-game? )
     
  18. Offline

    Raycrash

    Don't worry man.
    Though as soon as it's fixed we will use it!
    Thanks =)
     
  19. Offline

    beatcomet

    I will add that soon :)

    thanks for understanding. since I got some time now, I will start recoding now :)
     
  20. Offline

    Samzapp

    Code:
    [SEVERE] Error occurred while disabling CodeMania v1.0 (Is it up to date?): Java heap space
    java.lang.OutOfMemoryError: Java heap space
    IDK WTF happened. I'm not sure if it happened while I was closing the console or what.
     
  21. Offline

    joby890

    what is the one your updating rc or this one
     
  22. Offline

    Vettexl

    Code:
    21:42:47 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'redeem' in plugin CodeMania v1.0
            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:320)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
            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:85)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
            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.CM.CM.getUses(CM.java:122)
            at me.beatcomet.CM.CM.onCommand(CM.java:288)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 13 more
    
    I was looking forward to this plugin as it's simple and straight forward but trying to use the /redeem command gives these errors....
     
  23. Offline

    SAMDAN

    Probably just missed it, but what do codes do?
    Edit: Yep, it says in the second line. I fail
     
  24. Offline

    Nazerb

    Update, Multiple items, Expiry date.
     
  25. Offline

    TheMiA

  26. Offline

    MikeA

    Could you make it 1 use per person? Or make a version for me with that. Quote this if so :)
     
  27. Offline

    CKSpoiler

    It would be cool if when you entered the code, you could also get promoted through GroupManager.
     
  28. Offline

    Pixiio

    Very nice, can we still use this?
     
  29. Offline

    zOxigen

    This is Inactive?
     

Share This Page