PromoPlugin is a Minecraft plugin that allows players to enter promo codes and receive various items in return. It is perfect for servers that want to reward players for participating in events or completing tasks using simple promo codes.
Main Features:
- Promo Code Usage: Players can enter the command /promo <code> to receive items associated with a specific promo code. These can be items like diamonds, gold ingots, or other resources.
- Creating Promo Codes: Operators (players with administrative rights) can create their own promo codes using the /createpromo <code> <item> <amount> command. This makes it easy to add new promo codes to the server without having to edit configuration files.
- No Reuse of Promo Codes: Once a promo code has been used, it is saved, and players will not be able to use it again, even if the server is restarted. This ensures that each promo code can only be used once.
- Data Persistence: All used promo codes are saved in a file on the server. This data is preserved across server restarts, preventing promo codes from being reused.
- Plugin Information: The /helppromo command provides players and admins with information about the plugin, including a list of available commands and their descriptions.
Plugin Commands:
- /promo <code> — Applies the promo code and gives the player the corresponding reward.
- /createpromo <code> <item> <amount> — Creates a new promo code that can be used (only for operators).
- /helppromo — Displays information about the plugin, its features, and the author.
/proen — Switches the interface language between English and Russian.
/adminpromo — Admin Promo Menu
How It Works:
- The administrator creates a promo code using the /createpromo command.
- Players enter the command /promo <code> to receive their rewards.
- After being used, the promo code cannot be reused, and its data is saved in a special folder on the server.
- Administrators can manage promo codes, creating new ones and removing old ones.
Advantages:
- Convenience for Administrators: Easy creation and management of promo codes without needing to manually edit configurations.
- Multi-server Support: Data persistence across restarts and easy integration of the plugin into different projects.
- Player Rewards: The plugin allows for bonus programs that reward players for their activity on the server.