Adding A Code:
If You Go Into Codestore.yml
you can copy testcode
uses: how many times the code can be used you can set it to Infinity for Infinity uses
expiry: time the code expires don't put it in if you don't want it to expiry
works in this format: dd/MM/yyyy hh:mm:ss a
M month-of-year number/text 07
d day-of-month number 10
a am-pm-of-day text PM
h clock-hour-of-am-pm (1-12) number 12
s second-of-minute number 55
y year number 2021
reward: the command to run just don't use a
Code (Text):
/
redeemers: just set it to
Code (Text):
ThisIsATestAdmin
oneredeemperplayer: if a player can redeem a code multiple times
[New]Coupon:
Coupons are items that are right clicked to redeem commands
Coupons are stored in coupon.yml
Coupon Executors look like this:
Code (YAML):
testcoupon:
reward: give <player> minecraft:dirt 64
redeemmsg: coupon
To give a coupon use this command:
Code (Text):
/cc <Int Custom Model Data> <String Coupon Executor> <String Item Name> <Boolean One Use>
Placeholders:
Use %codes_TheCodeYouWant_TheStatYouWantLikeUses%
You Can Use Placeholders Config Messages