CrazyVouchers

CrazyVouchers

Plugin

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

Server AdventureGame MechanicsUtility

10.9k downloads
28 followers
Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.
Filter loader...
Filter versions...
Filter channels...

Changes

  • Check if item is air everywhere, before going forward to please NBT-API

A fix, but not really a fix.

  • I simply told nbt-api to shut up about the material being air.

Notice:

  • Once 1.21.2 drops, NBT-API will be stripped from the plugin.
    • This is your warning to migrate old vouchers players have and technically the second warning, I forgot to push this update.
  • All old vouchers will stop working once NBT-API is removed!
  • The migration for old configurations has been removed.
    • If you need to migrate, use 3.7.4 as the migration works there.

Future Changes:

  • MiniMessage Support
    • There will be a migration from Legacy Color Codes -> MiniMessage
  • Updates to configurations with materials, sounds, and how items work
    • Internally, all materials, and trims will be handled internally, so need not worry about that.
    • Sounds will have to be migrated manually, not much I can do about that.
      • This change with sounds will allow custom sounds from resource packs.
  • This is a step in removing a large chunk of deprecated, or otherwise outdated ways of doing things as Minecraft has changed a lot internally.

Additions:

  • Added dupe protection for vouchers which is toggled false.
    • A config option was also added to append a line to the lore.

Changes:

  • Switched vouchers to use PersistantDataContainer which is much more performant, and achieves a similar goal.
    • Previous vouchers will work until 1.21.2, so please migrate them.
  • Allowed switching between file systems on /crazyvouchers reload
    • There will not be a migration to switch between.
  • Updated vital api

Fixes:

  • Fixed an issue on Folia #73

Changes:

  • Bumped to 1.21.1
  • Bumped nbt api

Fixed:

  • Issue with file manager not properly loading/reloading files.

Fixed:

  • Apply MaxStackSize to the player's inventory when using Player#addItem, so now instead of 99 items popping up in the inventory if giving 99 keys or any items, it'll split 64/35
    • Spigot for some odd reason made Player#addItem use the max stack size for the inventories. #hardforkwhen

Changes:

  • Simplified parsing messages internally with placeholders

Removed:

  • Migration for the old folder Vouchers -> CrazyVouchers

Changes:

  • Moved all i/o operations off the main thread.
  • Bumped nbt-api out of snapshot state to 2.13.1.
  • Added PlaceholderAPI support to all messages.

Fixed:

  • Issue with voucher-codes path not being correct in the codes folder.

Fixed:

  • Player Heads were not stacking previously, they should now.

Fixed:

  • Null pointer exception with HeadDatabaseAPI

Added:

  • Added support for HeadDatabaseAPI (the previous way of doing custom heads i.e. eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTVkMzE1NTkyNjFiM2U3OTAyNDc1MWZlMDdiNzExYzhmZWVmNTFkNTZjMDM2MzUyMjY5NTU4MDViYzQyODk0ZSJ9fX0= will be removed in the next major version of Minecraft.
voucher:
  # The material.
  item: 'PLAYER_HEAD'
  # The name of the item.
  name: '&cA player head example'
  # The lore of the item.
  lore:
    - '&7Use this voucher to get fancy trims.'
    - '&7&l(&6&l!&7&l) &7Right click to redeem.'
  # Only uncomment this if using HeadDatabase by Arcaniax
  skull: '61151'
  # The items to give when claiming the voucher.
  items:
    # Only uncomment this is using HeadDatabase by Arcaniax
    - 'Item:PLAYER_HEAD, Skull:61151, Name:&cA fancy head, Lore:&eA fancy lore,&7with lines, Amount:3, Glowing:true'

Fixed:

  • Issue with one of our dependencies #70

Added:

  • 1.21 support

Fixed:

  • config.yml got deleted after migrating causing the plugin to disable.

Fixed:

  • Do not create voucher-codes.yml or vouchers.yml if the option use-old-file-system is set to false.

Changes:

  • Updated how the menu opened by /vouchers admin is handled, this should fix the issues people had with the next/back button sending an error in console.

Changes:

  • No longer remapping the plugin when booted on paper servers.

Changes:

Fixed:

Changes:

  • Improved performance with configuration files.
  • Improved performance with choosing prizes.

Added:

  • 1.20.6 support
  • Folia support

Removed:

  • 1.20.4 support

Project members

CrazyCrew

CrazyCrew

Organization

Details

Licensed MIT
Published 2 years ago
Updated 5 days ago