Lucky Potions 1.3

lucky potions, good luck!

  1. Riccardo760TVTM
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    Contributors:
    Riccardo760TVTM
    [​IMG]
    A simple plugin that gives you a Water Bottle to drink, and if you will be luck you will won a prize!
    Dependencies: Vault
    Soft-Depend: Essentials (Economy plugin)



    The plugin is fully customizable:
    • You can edit Name, Lore, Price, Slot...​
    • You can edit the Inventory size.​
    • You can set the win command you want!​
    • You can add any potion you want!​


    Commands:
    • /luckypotions | will open the Inventory of the plugin
    • /luckypotions reload | will reload the plugin
    • /luckypotions info | returns some plugin's infos
    • /luckypotions help | return the list of plugin's commands


    Permissions:
    • luckypotions.use | User permission that allows to open up the GUI
    • luckypotions.admin or luckypotions.* | Admin permission that allows to use reload, info and help args.


    (!): If you are updating the plugin, check the new config.yml file that will be generated. The older one will be renamed into config_old.yml to allow you to copy the old configuration.



    Config:
    Code (YAML):
    #LuckyPotions v1.3
    #Developed by Riccardo760
    #Telegram: @Riccardo760
    #Discord: @Riccardo760#1314

    #Admin permissions: luckypotions.admin or luckypotions.*
    #Users permission: luckypotions.use

    #DO NOT TOUCH THIS VALUE
    config-Version
    : 1.3


    #Every message has the prefix, you can set prefix as "" to hide it.
    #You can set a message as "" and it won"t be displayed.
    #Please use the "&" char only for chat formatting.
    #Placeholders are only available on buy message
    messages
    :
      prefix
    : "&8[&d&lLuckyPotions&8] ยป &a"
      guiTitle
    : "&dLucky Potions"
      openingGUI
    : "You opened the shop!"
      bought
    : "You bought %luckypotion-name% &afor &d%price% &a$"
      reload
    : "Usage: /LuckyPotions reload."
      brewPotionWin
    : "You're lucky! You won! "
      brewPotionLoss
    : "Unfortunately you didn't win :("
      noPermission
    : "&cYou don't have permission to open the shop!"
      notEnoughMoney
    : "&c You don't have enough money!"
      noInventorySpace
    : "&c You have no space in your inventory!"
      invalidSender
    : "&cYou can't do this from CONSOLE!"
      tooManyArgs
    : "&cCorrect usage &a/LuckyPotions !"
      reloadCompleted
    : "Reload completed successfully!"


    #Number of slots of the inventory (must be a multiple of 9)
    #If the number isn't a multiple of 9, the GUI will be of 54 slots.
    InventorySlots
    : 54


    #Please don't add more than "InventorySlots" number of potions!
    #winChance is an integer
    #price is a double
    #DON'T CHANGE BOTTLE NAMES ONCE PLUGIN STARTED

    potions
    :
      potion1
    :
        name
    : "&dPotion 1"
        slot
    : 11
        cost
    : 1500
        winChancePercentage
    : 10
        consoleWinCommand
    : "eco give %player% 3000"
        lore
    :
          - "&aCost
    : &41500&a$"
          - "&d10% &awin chance."
          - "&aWin prize
    : &d3000&a$"

      potion2
    :
        name
    : "&dPotion 2"
        slot
    : 15
        cost
    : 3000
        winChancePercentage
    : 5
        consoleWinCommand
    : "eco give %player% 10000"
        lore
    :
          - "&aCost
    : &43000&a$"
          - "&d5% &awin chance."
          - "&aWin prize
    : &d10000&a$"



    The GUI:
    [​IMG]


    Meta example:
    [​IMG]



    Win example:
    [​IMG]



    About me:
    If you find a bug please DM me instead leaving a BAD review pls.
    Telegram: @Riccardo760
    Discord: @Riccardo760#1314

    P.S. The plugin code will be optimized in the future

    CryptoCode likes this.

Recent Reviews

  1. CryptoCode
    CryptoCode
    5/5,
    Version: 1.3
    nice pl bro, continue like that, nice pl bro, continue like that, nice pl bro, continue like that!
    1. Riccardo760TVTM
      Author's Response
      ty bro :)
  2. Dzirt
    Dzirt
    5/5,
    Version: 1.1-BETA
    add a command to dispense a bottle add a command to dispense a bottle add a command to dispense a bottle
    1. Riccardo760TVTM
      Author's Response
      You can use /luckypotions
      Thanks for the 5 starts review :)