As of BuycraftX 10.2, you can now create coupons in-game. As we wanted to create a solution which is easy to use in-game, there are some options which are not possible to achieve from the coupon creation command. If you need to, you can always modify the coupon from your control panel.
- Your coupon code will be automatically generated and can not be overridden.
- You can not restrict the coupon to certain items or categories.
- All coupons will apply to all items in a user's basket.
- All coupons will apply to both single purchase and subscriptions.
The coupon create command
When creating a coupon you will be able to use the "/buycraft coupon create ..." command but to choose the type of coupon you are making you will need to add the following:
The example below creates a coupon which discounts 25% expires in 12 days and players can only redeem it twice.
/buycraft coupon create percentage 25 expires 12d user_limit 2
/buycraft coupon create value 10.10 limit 100 min_value 5 user_limit 1
The coupon list command
The coupon list command will list out the coupons and their names in the console so that you can view them to give to your players.
/buycraft coupon list
The coupon delete command
You can also delete coupons from in-game using the following command.
/buycraft coupon delete <couponname>