MineCoupon
MineCoupon
MineCoupon allow you to issue coupons. For each coupon, a code is generated that can be passed to one or more users. The user can simply enter the code and then the plugin executes the specified command.
System Requirements
- MineCoupon is ready for CraftBukkit 1.5.2 R1.0.
- MySQL Database (recommended)
Installation
- Copy MineCoupon.jar in your plugin directory
- Resart your server
- If needed: edit or replace config.yml to change the language
- Select the database type (sqlite or mysql)
- Fill in the accessdata for your MySQL database if selected
- If you don't want to install PluginMetrics set allowpluginmetrics: false
- Restart your server
Permissions
Type InGame: /coupon to get help.
- Allows users to redeem their coupon: minecoupon.use
- Allows users to list all coupons: minecoupons.list
- Allows users to create coupons: minecoupon.create
- Allows users to remove coupons: minecoupon.remove
- Check for Updates during join: minecoupon.checkupdate
(minecoupon.checkupdate is for Admins or OP's. The players with this permission will check for Updates when they join. Update won't be downloaded. It only gives a message.)
Commands
Type InGame: /coupon to get help.
- Apply Coupon: /coupon <couponcode>
- Create Coupon: /coupon create <applications> <valid_trough> <command> <multible_use>
- List Coupons: /coupon list
- Remove Coupon: /coupon remove <couponcode>
- <applications> ... How many times the coupon can be used. (use -1 for ∞)
- <valid_trough> .... Timeto make the coupon invalid (use second, minute, hour, day, week, month - e.g: 2week)
- <command> ....... Command that should be executed when redeeming. (instead of SPACE use ?)
- <multible_use> ....... Let the same player use the coupon multible times (parameter can be: true, false)
- To get playername in command use %player%
- To set more commands use ; - e.g: money?give?%player%100;op?%player%
e.g: /coupon create 1 1week deop?noch false This creates a coupon that can be used once. If the code is entered before 1 week after generation the command "deop noch" will be executed.
Information MineAdmin Collects
In order to offer some comfort features the plugin needs to collect data. In this part we will disclose all types of information collected by MineAdmin.
Check for Updates feature
Every time a permitted user enters the server MineAdmin checks if a newer version is available.
- Collected information: Pluginversion
- Information gets transmitted to: inapp.xtrsource.com
- The Webapp generates an answer (a simple string) that is read by the plugin. Nothing of the transmitted information is stored on our servers.
- To disable this function remove the permission (minecoupon.checkupdate) or set allowcheck_update: false in the config file.
Plugin Metrics
MineAdmin uses PluginMetrics in order to let us operate effectively and provide you the best plugins, services and experiences we can.
- PluginMetrics is a standard library that is also used by many other plugins. It collects anonymus data and transmitts it to mcstats.org.
- The collected data is displayed under: http://mcstats.org/plugin/MineCoupon
- To disable this library visit the PluginMetrics folder and set opt-out: true in the config file. (setting allowpluginmetrics to false in MineCoupon config. will prevent MineCoupon of creating a PluginMetrics folder and using the library if there are no other plugins - e.g. Essentials, LWC, dynmap, Vault, AuthMe, ChestShop, LogBlock - using PluginMetrics installed.)
Where do I get help?
- Create a ticket here at Bukkit (I'm looking forward to give you more options)
Languagefiles
- German: Download
- Spanish: Download (translated by yNeolh)
- Dutch: Download (translated by smeagleee)
- Simplified Chinese: Download (translated by zestybaby)
- Romanian: Download (translated by Florinmohican)
ToDo List
- Make create command more userfriendly
IMPORTANT
The old command /mc isn't used any more. Now it is /coupon.
I can't create cupons with version 1.6.4 R2.0!!!
Is it a way to disable the MySQL for 1.2.5? I have some troubles with that system
Awesome Plugin!!!!!
@ShoxX304
Hallo,
This isn't implemented in the current version of the plugin. But the next update will give you that option.
I look forward to release it in the next 5 days.
How to create an Coupon that will do pex user %player% group set default after 4 Weeks?
@BenMe
Try to connect to your SQLite or MySQL database and check if the same code is twice there.
When i create a coupon example: /coupon create 1 1week deop?noch true <Code> The plugin tells me "The Code <Code> is already in use. I set up the plugin first time...
@Lars123123
this is not a problem but minecoupon citizen that does not allow the creation of NPC via the console. This is normal because the console via can not define the exact position of the NPC. Look in the logs you'll see. I tried for you and here is what the logs show:
So this does not come from minecoupon. Cordially.
Would be great if you add Citizen support , so user can user a coupon to add a NPC Because smth like "/coupon create 5 2week npc?create?Notch" dont work
love the plugin but is there a way to make it so that people can use the commands from the coupon like /give or /i etc... without having to changing it in there permission file? Like make it so they can only use that command when they are using that coupon?
@thomasraith
Cool thanks!
This is EXACTLY the plugin I was looking for, its so easy, customization and so nice to reward players, especially on the holidays like thanksgiving. Went great! Amazing plugin.
@alofoxx
Hello
Here is a script that sends all coupons back. You can get the last coupon by reading only the data with the highest ID.
Script: http:dl.xtrsource.com/?file=0100
You can interpret the answer of the script with JavaScript (XML answer) - Check readme.
@thomasraith
php script showing the latest coupon code would be nice!
so if i make a new code it is what is shown on the webpage.
if there was options to how many to show i would use just the latest/newest coupon
@devman45
Update is in work. Release is in about 1day
You can use this build in the mean time: http://dev.bukkit.org/server-mods/minecoupon/files/15-mine-coupon-v3-3-2-beta-build/
The best coupon plugin ever. Please update it to the latest version of craftbukkit! I miss it :(
@webshoptv
The users should be able to create their code online or should they apply it online? Or should this script display all codes?
Can you make a script in PHP where users can get their code online, pls?
@segundo03
Today I found some time to add and test the new SQLite database. It is available in version 3.2. I have already uploaded it to bukkit and I'm waiting for approval. But it should be online in the next 12 hours.
If you install it, you will get the message that it is an development buid please ignore it (it will be gone away in the next 10h).
@LeChuuck
Thanks for reminding me! The command for multible use is: /coupon create <applications> <valid_trough> <command> <multible_use>
For multible_use the following parameters will work: true, false!