Плагины/CrazyVouchers
CrazyVouchers

CrazyVouchers

Want to make a paper that can give you an axolotl with a pretty firework display, Look no further!

25.2K
50

CrazyVouchers 5.1.1

release23 октября 2025 г.

Bugs Fixed 🐛

  • Fixed an issue with the out of bounds exception involving random-commands
  • Fixed an issue where PlaceholderAPI placeholders weren't being parsed.

CrazyVouchers 5.1.0

release22 октября 2025 г.

Changes

  • Added a new configuration option has-argument to vouchers/codes which was a result of fixing {arg} not being replaced in commands.
  • Added a new configuration option to the config.yml that allows you to choose whether to allow off-hand usage or not.
  • Added a new permission crazyvouchers.bypass.2fa which lets you bypass 2fa when right-clicking.
  • Added a new configuration option override-anti-dupe to 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-frames to vouchers, which lets your players place vouchers in item frames if set to true.
  • chance-commands and random-commands have 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-commands functioned before, which is run separately and has no relation to the weight based options.
  • You will need to run /crazyvouchers migrate -mt VouchersDeprecated for the changes to take effect, You will see console nagging regarding outdated configurations until you do.
  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 for further information on how this works now.
    • You can manually add this to your existing configurations that do use the {arg} variable.

CrazyVouchers 5.0.2

release11 августа 2025 г.
  • Fixed another issue with the LegacyColorMigrator.
  • Added new config option to vouchers.yml / vouchers folder
voucher:
  # The material.
  item: 'diamond_helmet'
  # An example of how to use custom model data
  custom-model-data: -1 
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#1347
  • Fixed startup issue with old custom model data format i.e. diamond_helmet#1347
  • Added more verbose logging to all existing migrators.
  • Fixed issues with whitelist/blacklist checks.

CrazyVouchers 5.0.1

release6 августа 2025 г.
  • Fixed issue with the migration messages not sending.

CrazyVouchers 5.0.0

release6 августа 2025 г.

Please report any bugs to our GitHub issues tab!

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 Items section 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

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

NewOldCommandAliases
crazyvouchers.giveallvouchers.admin/crazyvouchers giveallN/A
crazyvouchers.migratevouchers.admin/crazyvouchers migrateN/A
crazyvouchers.reloadvouchers.admin/crazyvouchers reloadN/A
crazyvouchers.redeemvouchers.redeem/crazyvouchers redeemN/A
crazyvouchers.typesvouchers.admin/crazyvouchers types/crazyvouchers list
crazyvouchers.helpvouchers.admin/crazyvouchers helpN/A
crazyvouchers.openvouchers.admin/crazyvouchers open/crazyvouchers admin
crazyvouchers.givevouchers.admin/crazyvouchers giveN/A
crazyvouchers.accessvouchers.admin/crazyvouchersN/A

Other

NewOld
crazyvouchers.notify.dupedvouchers.notify.duped
crazyvouchers.bypassvouchers.bypass

Other Changes

Trim Material

Before

voucher:
  # The items to give when claiming the voucher.
  items:
    - 'Item:DIAMOND_HELMET, Trim-Pattern:SENTRY, Trim-Material:QUARTZ, Amount:1'
    - 'Item:DIAMOND_CHESTPLATE, Trim-Pattern:DUNE, Trim-Material:REDSTONE, Amount:1'

After

voucher:
  # The items to give when claiming the voucher.
  items:
    - 'Item:DIAMOND_HELMET, Trim:SENTRY!QUARTZ, Amount:1'
    - 'Item:DIAMOND_CHESTPLATE, Trim:DUNE!REDSTONE, Amount:1'

Enchantments

NewOld
protectionPROTECTION_ENVIRONMENTAL
fire_protectionPROTECTION_FIRE
feather_fallingPROTECTION_FALL
blast_protectionPROTECTION_EXPLOSIONS
projectile_protectionPROTECTION_PROJECTILE
respirationOXYGEN
aqua_affinityWATER_WORKER
sharpnessDAMAGE_ALL
smiteDAMAGE_UNDEAD
bane_of_arthropodsDAMAGE_ARTHROPODS
lootingLOOT_BONUS_MOBS
sweepingSWEEPING_EDGE
efficiencyDIG_SPEED
unbreakingDURABILITY
fortuneLOOT_BONUS_BLOCKS
powerARROW_DAMAGE
punchARROW_KNOCKBACK
flameARROW_FIRE
infinityARROW_INFINITE
luck_of_the_seaLUCK
  • No longer rely on ItemMeta anymore which means a large performance increase due to the nature of how ItemMeta works.
  • Commands have been overhauled which will make adding new commands easier!
  • Replaced plugin.yml with paper-plugin.yml.
  • Added support for item models which serves as a replacement for Custom Model Data
  • Fixed an issue with anti-craft not working.
  • Sounds are now mojang mapped, i.e. we use sounds from minecraft.wiki sounds.json, https://minecraft.wiki/w/Sounds.json
  • Updated to 1.21.8
  • Added new config option to fusion.yml, recursion_depth which lets you define how many folders to loop through in codes or vouchers
voucher:
  # Any generic component for the Item.
  components:
    # Hides the entire tooltip
    hide-tooltip: false
    # Hides components defined in this list. It allows more control than above.
    # Leave the hide-tooltip false if you plan to use this.
    hide-tooltip-advanced:
      - "enchantments"
    # The item model, Mojang introduced this in 1.21.4... this replaces custom model data!
    # Set this to blank for it to do nothing.
    item-model:
      # The namespace i.e. nexo
      namespace: ""
      # The key i.e. emerald_helmet
      key: "" 

Совместимость

Minecraft: Java Edition

1.20.1–1.21.101.18.2–1.19.41.16.51.12.21.8.8

Платформы

Поддерживаемые окружения

Сервер

Детали

Лицензия:MIT
Опубликован:3 года назад
Обновлён:1 неделю назад
Главная