CouponCodes
View the Javadocs
View the Documentation
View the source code on Github
Download the latest version on Github
View the source code on Github
Aid in translating this project on Crowdin
What is this plugin?
CouponCodes allows you to create and redeem codes and coupons. The coupons can give you multiple items, economy money, or even in-game ranks. You can customize each coupon such as how many times it can be used and for how long it can be used.
Features
- Create coupons to give items, xp, ranks, econonmy money, or run commands
- Simple Commands
-
Database Support
-
Bukkit
- SQLite
- MySQL
-
CanaryMod
- Canary built-in database
-
Bukkit
- API For developers
Requirements
-
Bukkit
- Vault (Optional)
- Some Form of Permissions
-
CanaryMod
- None
Commands and Permissions
Command | Permission | Description |
---|---|---|
/coupon | Displays commands for this plugin | |
/coupon add item <name/random> <item1:amount,item2:amount,...> | cc.add | Adds a coupon to redeem an item |
/coupon add econ <name/random> <money> | cc.add | Adds a coupon to redeem an amount of economy money |
/coupon add rank <name/random> <group> | cc.add | Adds a coupon to redeem a rank |
/coupon add xp <name/random> <xp> | cc.add | Adds a coupon to redeem xp |
/coupon time <time> | cc.time | Changes the time of a coupon |
/coupon uses <uses> | cc.time | Changes the uses of a coupon |
/coupon remove <name> | cc.remove | Removes a coupon |
/coupon redeem <name> | cc.redeem | Redeems a coupon |
/coupon list | cc.list | Shows available coupons |
/coupon info [name] | cc.info | Shows information about a coupon |
Additional Permissions
Permission | Description |
---|---|
cc.* | Gives access to all commands |
This plugin utilizes Plugin Metrics for collecting statistics about this plugin and usage. These stats can be viewed here.
tested on 1.6.2 and working ;p
Hi! I've translated it to Hungarian. How could I send you the file?
1.6?
CAN YOU PLEEEEESE ADD THE RANDOM CODE GENERATOR OPTION?????
Update?
I would love for the ability to give more specific ID's, like 35:5 for example. Is this planned for a future update?
please add feature to set expired code i want to make member when redeem rank code, he will move into vip group and when the coupon is expired his group is reset to member again
@paradocsic1982
If you are looking for functionality with signs, I believe this will work we'll using my plugin in combination with Command Signs
nice plugin great potential, maybe you can add sign coupons will be use full what you think ?
@AngrySoundTech
ETA?
Fix has been posted, just waiting on approval
Sorry, small problem sprung up during compiling. I recommend using version 2.1.0 for now, and I will fix this as soon as I can.
Also, after 10 minutes of the server being up, and not being able to connect, i get this:
2013-03-27 12:46:55 [SEVERE] [CouponCodes] [Error] Could not measure plugin 2013-03-27 12:46:55 [SEVERE] java.net.ConnectException: Connection timed out 2013-03-27 12:46:55 [SEVERE] at java.net.PlainSocketImpl.socketConnect(Native Method) 2013-03-27 12:46:55 [SEVERE] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at java.net.AbstractPlainSocketImpl.connect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at java.net.SocksSocketImpl.connect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at java.net.Socket.connect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at java.net.Socket.connect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.NetworkClient.doConnect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.http.HttpClient.openServer(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.http.HttpClient.openServer(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.http.HttpClient.<init>(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.http.HttpClient.New(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.http.HttpClient.New(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) 2013-03-27 12:46:55 [SEVERE] at net.Drepic.CouponCodes.misc.Metrics.postPlugin(Metrics.java:246) 2013-03-27 12:46:55 [SEVERE] at net.Drepic.CouponCodes.misc.Metrics.beginMeasuringPlugin(Metrics.java:187) 2013-03-27 12:46:55 [SEVERE] at net.Drepic.CouponCodes.runnable.CustomDataSender.run(CustomDataSender.java:150) 2013-03-27 12:46:55 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53) 2013-03-27 12:46:55 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) 2013-03-27 12:46:55 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:512) 2013-03-27 12:46:55 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) 2013-03-27 12:46:55 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476) 2013-03-27 12:46:55 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409) 2013-03-27 12:46:55 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
Hello. My server has had a big problem that when it restarts, no one can see it or connect to it. It turns out, after disabling each plugin, one at a time, its CouponCodes.jar. Why is this? is there plugin conflict?
I am ready to release a new version, adding localization. This means that you can have the plugin be in your native language. However, I can't speak every language. If you would like to help with translating, go to the localization tab at the top of this page. Your help allows me to have the most accurate translations possible.
@deniseee22
I will add enchanted items to my list of to-do
How do i add enchant itens? Thanks for the plugin