Installation
- Download the update from modrinth/hangar for your version of Minecraft.
- Note, Any version that is not the newest version of Minecraft is not supported.
- You must be using at least https://papermc.io/.
- The file you downloaded goes in the
pluginsfolder. - Restart the server.
- Create new files in the
vouchers/codesfolder, orvouchers.ymlorcodes.ymland look at the existing files in there to help figure out how to use the plugin. - Reload the plugin, Use
crazyvouchers giveorcrazyvouchers redeemto test your changes. - View the documentation @ https://docs.crazycrew.us/docs/mods/crazyvouchers/
Quick Builds
Get the latest builds for every commit!
Contributing
Support
All support for the plugin is provided on Discord! If a question cannot be answered on the wiki, The next best place is to ask it in the Discord.
Data Collection
We collect anonymous statistics on how the plugin is used at https://bstats.org/plugin/bukkit/Vouchers/4536 and is visible to the public.
If you do not want this anonymous data sent, You currently have to go to the bStats folder, and set that to false.
Apex Hosting (ad)
We're sponsored by Apex Hosting, Click here to get 25% off your first purchase with the code APEX25 at checkout for Minecraft servers, Satisfactory servers, and more!
How to Install CrazyVouchers (Plugin)
CrazyVouchers by Unknown is verified for Folia, Paper, Purpur, Spigot across Minecraft versions 1.12.2, 1.16.5, 1.18.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 1.20.4 (latest release: 26.1.2-bfe40fd, file size: 2.3 MB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.12.2, 1.16.5, 1.18.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 1.20.4) and platform (Folia, Paper, Purpur, Spigot).
- Make sure you have the compatible loader or environment installed for Folia, Paper, Purpur, Spigot.
- Move the downloaded CrazyVouchers file into your Minecraft
.minecraft/pluginsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 |
### Fixes
- Fixed
/crazyvouchers migrate -mt VouchersColor - Fixed recursion depth not working in fusion.yml.
### New Commands
- Added /crazyvouchers version which includes the git commit, previous git commit, and current version.
- If any value is not found, it will return "N/A"
### Plugin Support
- Note: replace
<item_id>with the correct identifier from the custom item plugins.**<br> - Second Note: Any place you can input
diamond_axeallows you to use this format.**<br> - Third Note: You can still use
emerald_helmetas in direct ids as well**
- Added support for HMCWraps.
item: hmcwraps@<item_id>- This introduces new formats for other plugins like Oraxen, Nexo, CraftEngine, and ItemsAdder
item: nexo@<item_id>item: oraxen@<item_id>item: itemsadder@<item_id>item: craftengine@<item_id>
### Configuration Changes
#### Glowing
- Glowing no longer is true/false, however existing configurations using true/false will still work as we look for that internally as well.
yaml
# Should the item glow?
# Available Types: add_glow, remove_glow, none
Glowing: "none"
`
#### Two-Factor Authentication
- Added the ability to customize the two-factor message *per* voucher/code
- If the message in the voucher/code file is not found, it falls back to the default message in messages.yml
`yaml
# Enables the ability to require a player to confirm claiming the voucher.
two-factor:
# If this should be enabled.
toggle: false
# The messages to send to confirm.
message:
- "{prefix}<gray>Right click again to confirm that you want to use this voucher."
``## Bugs Fixed 🐛
- Vouchers could be used in recipes due to using return instead of continue.
- world#dropItem was not wrapped in Folia Scheduler which led to incompatibility on Folia.
- Vouchers/Codes not refreshing when running the migrators.
- The plugin jar being in a directory with a space in it would cause startup errors.
- Custom Heads with HeadDatabase were not working.
- Weighted random commands were not working properly to invalid filters.
- Commands with no weights were not running due to an invalid filter.
- {random}:minimum-maximum placeholder now works properly, and allows for multiple replacements in a command.
As always, Report 🐛 to https://github.com/Crazy-Crew/CrazyVouchers/issues
- Fixed an issue where rgb/color were not working when building a voucher.
As always, Report 🐛 to https://github.com/Crazy-Crew/CrazyVouchers/issues
- Fixed a potential memory leak caused by using double brace initializers.
As always, Report 🐛 to https://github.com/Crazy-Crew/CrazyVouchers/issues
- Fixed multiple issues with
random-commands - Fixed multiple issues with the migration types like
VouchersDeprecated - Fixed an issue where the old
random-commandslist would be copied as is during migration into one command pool which caused all commands to be run, instead of spread out. - This will perform the previous behavior as it was intended now.
- If you have a backup, load it... and re-run /crazyvouchers migrate -mt VouchersDeprecated
As always, Report 🐛 to https://github.com/Crazy-Crew/CrazyVouchers/issues
- Fixed issue with {random}:50000-2000000 not working.
- Fixed issue random-commands, and weight calculations. The filter predicate was inverted for weighted and weightless options.
- Fixed an issue with the
out of boundsexception involvingrandom-commands - Fixed an issue where PlaceholderAPI placeholders weren't being parsed.
- Added a new configuration option
has-argumentto vouchers/codes which was a result of fixing{arg}not being replaced in commands. - Added a new configuration option to the
config.ymlthat allows you to choose whether to allow off-hand usage or not. - Added a new permission
crazyvouchers.bypass.2fawhich lets you bypass 2fa when right-clicking. - Added a new configuration option
override-anti-dupeto vouchers which lets you override the anti dupe option in the config.yml - It defaults to false, which is the default behavior out of the box.
- Added a new configuration option
allow-vouchers-in-item-framesto vouchers, which lets your players place vouchers in item frames if set to true. chance-commandsandrandom-commandshave been combined, They were not working properly anyway. We opted for a weight based system when picking random commands, The lower the number. The less likely the command(s) will be run.- You can specify one command in the list, or multiple. It's up to you!
- If there is no weight option present, It will be considered how
random-commandsfunctioned before, which is run separately and has no relation to the weight based options. - You will need to run
/crazyvouchers migrate -mt VouchersDeprecatedfor the changes to take effect, You will see console nagging regarding outdated configurations until you do.
yml
random-commands:
"1":
# The chance for these to run
weight: 45.0
# The commands to run
commands:
- "eco give {player} 100"
"2":
# The chance for these to run
weight: 25.0
# The commands to run
commands:
- "eco give {player} 1000"
# No chance is provided, thus we will pick random commands.
"6":
# The commands to run
commands:
- "give {player} diamond 5"
`
## Technical Changes
- Cleaned up internals when creating a voucher, or a code.
- This allows us to add newer features easier as it's more readable, and less prone to human error.
{random}:1-10000 has been improved, and has better logging when a problem happens i.e. due to invalid numbers being used.Updated the interaction internals to account for off-hand usage by using PlayerInventory & EquipmentSlots
## Bugs Fixed
- Voucher Codes when broken were being put in the wrong list which could lead to confusion when viewing what broke.
{arg} was not being replaced when a command was being run.We no longer check the name/lore if {arg} is present which in hindsight was a bad idea.Please read the [Changes](#changes) for further information on how this works now. You can manually add this to your existing configurations that do use the {arg}` variable.- Fixed another issue with the LegacyColorMigrator.
- Added new config option to vouchers.yml / vouchers folder
yml
voucher:
# The material.
item: 'diamond_helmet'
# An example of how to use custom model data
custom-model-data: -1
`
`yml
vouchers: # Where you make your vouchers.
# The name of the voucher.
money:
# The material.
item: 'diamond_helmet'
# An example of how to use custom model data
custom-model-data: -1
`
- Added a new migrator type called
VouchersDeprecated which at the moment only migrates old custom model data usage to the format above.The condition to migrate is that item must follow the format diamond_helmet#1347Fixed startup issue with old custom model data format i.e. diamond_helmet#1347`- Fixed issue with the migration messages not sending.
https://github.com/Crazy-Crew/CrazyVouchers/issues
## New Items section
I've made a new
Items section which is currently in use in CrazyCrates, I am simply bringing it to CrazyVouchers.You can experiment with this option by enabling it in your
config.yml- The command /crazyvouchers migrate -mt NewItemFormat will update all
Itemssection to the best it can. - The migration is one way, Please be wary of this and take backups.
## Legacy Color Codes
Legacy color codes are no longer supported, They have been replaced by MiniMessage, https://docs.advntr.dev/minimessage/format
### Migrate
- https://toolbox.helpch.at/converters/legacy/minimessage
- https://www.birdflop.com/resources/rgb/
- Use the "Decode" option labeled experimental, I complained about legacy color code garbage about 2 years ago, they remembered and pinged me.
- /crazyvouchers migrate -mt VouchersColor which will try it's best to convert them.
### Other migration types
We offer migration types for the following
- VouchersDeprecated
- Any deprecated option will be replaced/removed with this
- VouchersNbtApi
- Migrates old vouchers to new vouchers
- VouchersSwitch
- Switches between single and multiple files
- VouchersRename
- Renames voucher-codes.yml to codes.yml, This takes a backup of the previous file.
## Permissions
Permissions are no longer the same, Permissions were renamed and the old nodes were always meant to be a temporary usage,
This allows more control over what you can give a player.
/vouchers and /voucher are considered aliases for /crazyvouchers### Commands
| New | Old | Command | Aliases |
|-------------------------|-------------------|--------------------------|------------------------|
|
crazyvouchers.giveall | vouchers.admin | /crazyvouchers giveall | N/A ||
crazyvouchers.migrate | vouchers.admin | /crazyvouchers migrate | N/A ||
crazyvouchers.reload | vouchers.admin | /crazyvouchers reload | N/A | |
crazyvouchers.redeem | vouchers.redeem | /crazyvouchers redeem | N/A ||
crazyvouchers.types | vouchers.admin | /crazyvouchers types | /crazyvouchers list ||
crazyvouchers.help | vouchers.admin | /crazyvouchers help | N/A ||
crazyvouchers.open | vouchers.admin | /crazyvouchers open | /crazyvouchers admin ||
crazyvouchers.give | vouchers.admin | /crazyvouchers give | N/A ||
crazyvouchers.access | vouchers.admin | /crazyvouchers | N/A | ### Other
| New | Old |
|------------------------------|-------------------------|
|
crazyvouchers.notify.duped | vouchers.notify.duped ||
crazyvouchers.bypass | vouchers.bypass |##
...
- Fixed an issue with dupe protection
- Added /crazyvouchers migrate which will migrate old vouchers to the new vouchers
- The permission for the command is
crazyvouchers.migrate - Deprecated use of
voucher.adminandvoucher.redeem - They have been replaced by
crazyvouchers.adminandcrazyvouchers.redeem - Old permissions starting with
voucherwill work for the time being. - Deprecated old /voucher command, please use /crazyvouchers as /voucher will be removed in future updates.
- Fixed an issue where dupe protection uuids were applied twice.
