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.

Download MineCoupon [[|Download]] github MineCoupon github Wiki Wiki

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.

Supports MySQL and SQLite

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of devman45 devman45 Dec 13, 2013 at 13:41 UTC - 0 likes

    I can't create cupons with version 1.6.4 R2.0!!!

  • Avatar of cato11112 cato11112 Dec 06, 2013 at 16:36 UTC - 0 likes

    Is it a way to disable the MySQL for 1.2.5? I have some troubles with that system

  • Avatar of devman45 devman45 Sep 20, 2013 at 19:21 UTC - 0 likes

    Awesome Plugin!!!!!

  • Avatar of thomasraith thomasraith Jul 17, 2013 at 09:01 UTC - 0 likes

    @ShoxX304: Go

    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.

  • Avatar of ShoxX304 ShoxX304 Jul 04, 2013 at 20:31 UTC - 0 likes

    How to create an Coupon that will do pex user %player% group set default after 4 Weeks?

  • Avatar of devman45 devman45 Mar 29, 2013 at 13:12 UTC - 0 likes

    @BenMe: Go

    Try to connect to your SQLite or MySQL database and check if the same code is twice there.

    Last edited Mar 29, 2013 by devman45
  • Avatar of BenMe BenMe Mar 10, 2013 at 19:14 UTC - 0 likes

    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...

    Last edited Mar 10, 2013 by BenMe
  • Avatar of Mortiloche Mortiloche Feb 10, 2013 at 13:39 UTC - 0 likes

    @Lars123123: Go

    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:

    [INFO] Mortiloche Issued server command: /coupon k9om5 => the code
    
    [INFO] false => significant that the coupon is used by the player. (multi use is denied appears therefore false)
    
    [INFO] You must use this command ingame => Which indicates that the command should be used in game because the console does not just generate the npc.
    

    So this does not come from minecoupon. Cordially.

  • Avatar of Lars123123 Lars123123 Jan 12, 2013 at 19:14 UTC - 0 likes

    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

  • Avatar of Link150 Link150 Dec 27, 2012 at 14:38 UTC - 0 likes

    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?

Facts

Date created
Apr 14, 2012
Categories
Last update
Jul 23, 2013
Development stage
Release
Language
  • deDE
  • enUS
  • esES
  • zhCN
License
GNU General Public License version 3 (GPLv3)
Curse link
MineCoupon
Downloads
6,589
Recent files

Authors