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
comming soon I'm going to add BOSEconomy and Essentials economy support as well Working on it right now
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 !
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.
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.
Installed this now on other server, so lets spread some codes hehe 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
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 ?
@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.
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.
@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? )
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.
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....
I took this plugin over from him, here's the topic: http://forums.bukkit.org/threads/fun-rc-v1-2-redeem-codes-to-get-items-cb-1060.35562/ I'm working on a complete rewrite. As of right now, I have the ability for up to 4 items. I'm also adding generating and setting from console, possibly kit usage, and redeem once per player toggle.