Depends on
Required for this file to work correctly.
Works with
Optional integrations and compatible files.
About PromoCode
PromoCode - a promocode system that allows players to redeem codes and receive item rewards or funds directly to their GameStores balance.
Features
- Give players in-game items or add funds to their GameStores balance
- Each promocode can be redeemed once per player
- Customizable promocode expiration dates
- Simple and user-friendly in-game UI
- All promocode data is stored in Promocode/promo_data.json
- Supports English, Russian, and German
Permissions
- promocode.use - allows players to open the promocode menu and redeem codes
- promocode.admin - allows access to administrative promocode commands
Commands
- /menu - opens the promocode menu
- /promo create <code> <date> - creates a new promocode. The date must be specified in yyyy-MM-dd format
- /promo delete <code> - deletes an existing promocode
- /itempromo <code> <shortname> <amount> - creates a permanent promocode with an item reward
- /moneypromo <code> <date> <amount> - creates a promocode that adds funds to the player's GameStores balance
Interface Types
Configured in the config
.png.20a25689846c162a0cf046b60d7f084f.png)
GameStores
Required only if you want to use balance rewards. The GameStores integration can be enabled and configured in the plugin configuration file
Configuration
config/Promocode.json
{ "Main Settings": { "Use UI notify?": true, "Permission for use": "promocode.use", "Permission for admin": "promocode.admin", "UI Type (Default/Mevent)": "Default" }, "GameStores Settings": { "Enabled": false, "Api URL (DO NOT EDIT!)": "https://gamestores.app/api/", "Shop ID": "", "Server ID": "", "Secret Key": "" }, "Image List (DO NOT EDIT!)": [ "MainIcon", "SecondaryIcon", "CloseIcon" ] }
