depends on
About PromoCode
The TPPromoCode plugin allows you to manage promo codes on your Rust server.
It contains a convenient interface for entering and activating promotional codes, as well as additional options for displaying information in the global chat.
Features:
Promo code management:
Customize unique promo codes with rewards, maximum activations, and expiration dates.
Examples of promotional codes:
CONGRATULATIONS: Gives the player 1000 wood.
BONUS: gives the player 500 stones.
Simple interface:
User interface with a field for entering promotional codes.
Buttons for activating promotional codes and closing the menu.
Message system:
Customizable messages are available in multiple languages (English, Russian, Ukrainian).
Automatic broadcast of messages to the global chat when a promo code is activated.
Logging and security:
Tracks used promo codes for each player.
Checks expiration dates and activation restrictions.
Media integration:
Support for QR codes that link to social media platforms such as TikTok and Discord.
Configuration:
The plugin configuration file allows you to flexibly configure:
EnablePromoCodeBroadcast: Enables or disables global chat messages after a promo code is activated.
MessagePrefix: Sets a custom prefix for global chat messages. Example: <color=#0057b8>[Your prefix]</color>.
PromoCodes: defines a list of available promo codes with rewards, expiration dates, and activation limits.
Usage workflow:
The player enters the promo code using the /promo command.
If the promo code is valid, the plugin executes the reward command.
A notification with the player's name and activated promo code is sent to the global chat.
Localization:
The plugin supports three languages:
English
Russian
Ukrainian
All messages can be customized in the localization files.
Technical information:
Compatibility: Rust servers with the Oxide mod installed.
Additional dependencies:
ImageLibrary for working with images and QR codes.