About PromoCode
The TPPromoCode plugin allows you to manage promo codes on your Rust server.
It includes a user-friendly interface for entering and activating promo codes, along with additional options for displaying information in the global chat.
Features:
Promo Code Management:
Configure unique promo codes with rewards, maximum activations, and expiration dates.
Example promo codes:
WELCOME: grants 1000 wood to the player.
BONUS: grants 500 stone to the player.
Simple Interface:
User interface with an input field for entering promo codes.
Buttons for activating promo codes and closing the menu.
Message System:
Customizable messages available in multiple languages (English, Russian, Ukrainian).
Automatic broadcast of notifications to the global chat upon promo code activation.
Logging and Security:
Tracks used promo codes for each player.
Validates expiration dates and activation limits.
Media Integration:
Support for QR codes that link to social media platforms like TikTok and Discord.
Configuration:
The plugin configuration file allows for flexible setup:
EnablePromoCodeBroadcast: enables or disables global chat messages upon promo code activation.
MessagePrefix: sets a custom prefix for global chat messages. Example: <color=#0057b8>[Your Prefix]</color>.
PromoCodes: defines the list of available promo codes with their rewards, expiration dates, and activation limits.
Usage Workflow:
A player enters a promo code using the /promo command.
If the promo code is valid, the plugin executes the reward command.
A notification is sent to the global chat with the player’s name and the activated promo code.
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.