Vouchers
The Vouchers Module allows server owners and developers to create custom items with unique effects and commands attached. Using conditions and PlaceholderAPI placeholders, you can fine-tune item interactions to fit your server's gameplay.
Admins can give these items to players with /voucher give <player> <itemid> [amount]
.
Features
Assign commands to custom items that execute when used.
Utilize conditions to control item usage based on various parameters.
Integrate PlaceholderAPI to check player stats, permissions, and other dynamic values.
Configure console and player commands separately.
Customize item display names, lore, and enchantments for better immersion.
Condition Usage
The module supports various logical operators to create complex conditions:
&&
(AND) - Both conditions must be true.||
(OR) - At least one condition must be true.==
(EQUALS) - Compares if two values are equal.!=
(NOT EQUALS) - Checks if values are different.<
(LESS THAN) - Left value must be smaller.>
(GREATER THAN) - Left value must be larger.<=
(LESS THAN OR EQUALS) - Left value must be smaller or equal.>=
(GREATER THAN OR EQUALS) - Left value must be larger or equal.
Example Condition
This checks if the player's health is below 20 and food level is above 10, or if the player is not flying.
If a placeholder fails to parse, the condition will return
false
.
Example Items
Instant Heal Item
Personal Money Booster
Conclusion
The Vouchers Module provides a flexible way to create custom items with powerful effects. Using PlaceholderAPI, conditions, and command execution, you can fine-tune item interactions to enhance your server’s experience. Experiment with different setups to maximize the potential of your custom items!
Last updated