Lexi's XPBottle ✦ XP Levels to Bottle Converter [1.16.x] 1.0

Convert your XP Levels into customized XP Bottles!

  1. KTKDev
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    [​IMG]
    ═══════════════════════
    What is this about?
    Lexi's XPBottle is a simple lightweight plugin that lets you transfer your experience levels into a custom XP bottle, usable at any time. If you wanted something as simple as this, well, you may have found it. Also, it's free and forever will remain so.

    Tested on Spigot and PaperSpigot 1.16.2 (you may encounter problems with other forks, so be aware).
    ════════════════════════
    Preview
    [​IMG]
    ═══════════════════════
    Features
    ▪ Customizable messages and prefix.
    ▪ Custom name and lore for XP Bottles.
    ▪ Level cap (max XP levels per bottle).
    ▪ Sounds (on XP conversion and bottle throw).
    ▪ Particles (on XP conversion and bottle throw).
    ▪ Tab completion.
    Vault support.
    ════════════════════════
    Installation
    1) Download the resource by clicking on the "Download Now" button on the top-right corner.
    2) Place the "XPBottle-#.#.jar" file in your Server "plugins/" folder.
    3) (OPTIONAL) Download Vault and put its .jar in the same folder.
    4) Load the plugin by restarting your server.
    ═══════════════════════
    Commands (alias: xpb)
    xpbottle or xpbottle help: Shows help page.
    xpbottle get <x>: Converts <x> levels into a bottle.
    xpbottle reload: Reloads the plugin config file.
    ════════════════════════
    Permissions
    xpb.*: Grants all permissions listed below.
    xpb.get: Grants access to the "xpbottle get" subcommand. (Given by default)
    xpb.reload: Grants access to the "xpbottle reload" subcommand.
    xpb.help: Grants access to the "xpbottle help" subcommand. (Given by default)
    xpb.bypass.cap: Lets player bypass level cap.
    ═══════════════════════
    Soft-dependencies
    Vault (for economy support).

    ════════════════════════
    Default Config
    Code (YAML):
    #
    #   XPBottle
    #       by KTKDev
    #

    # Messages
    prefix
    : '&5XP&dB &8» &7'
    converted
    : 'You converted &e{lvl} &7XP levels in an XP Bottle.'
    converted-bought
    : 'You converted &e{lvl} &7XP levels in an XP Bottle for &a${price}&7.'
    no-console
    : 'You can''t execute this command as the console.'
    no-permission
    : 'Not enough permissions.'
    not-enough-levels
    : 'You don''t have enough XP levels.'
    not-enough-money
    : 'You don''t have enough money (Price: &a${price}&7).'
    not-enough-args
    : 'Not enough arguments.'
    not-enough-space
    : 'Your inventory is full.'
    level-cap-exceeded
    : 'You can''t transfer more than &e{lvl} &7XP levels in a bottle.'
    invalid-args
    : 'Invalid arguments.'
    config-reloaded
    : 'Config reloaded.'

    # Bottle Meta
    bottle-name
    : '&d&lMagic Bottle &7(RIGHT CLICK)'
    bottle-lore
    :
       - '&7□ &eXP Levels
    : &f{lvl}'
       - '&7□ &eEnchanter
    : &f{enchanter}'

    # Sounds (leave an empty string '' to disable)
    # Format: SOUND_NAME,[volume],[pitch]
    # List: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
    sound-converted
    : 'BLOCK_ENCHANTMENT_TABLE_USE,1,1'
    sound-use
    : 'BLOCK_GLASS_BREAK,1,1'

    # Particles (leave an empty string '' to disable)
    # Format: PARTICLE_NAME,[amount]
    # List: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
    particles-converted
    : 'ENCHANTMENT_TABLE,100'
    particles-use
    : 'SPELL_WITCH,200'

    # Use economy plugin?
    use-vault
    : true

    # Cost per XP Level (use-vault: true)
    cost
    : 50

    # Level Cap (put 0 to disable cap)
    level-cap
    : 0

    # Help page
    help-page
    :
     - '&f&m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯&7&m⎯&8&m⎯&r &5XP&dBottle &8&m⎯&7&m⎯&f&m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯'
      - '&e/xpb &7or &e/xpb help &8» &7Open this help page.'
      - '&e/xpb get <level> &8» &7Get a custom XP Bottle.'
      - '&e/xpb reload &8» &7Reload config.'
      - '&f&m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯'
    ════════════════════════

    Feedback

    Have you found a bug, anything that could be fixed or simply have a suggestion? Let me know by leaving a reply on the plugin's discussion thread. Constructive criticism is accepted.