GambleBar - The Perfect Gambling Solution 2.3 Beta

Gamble by drinking - NPC Shops - Commands - Easy to use - Free

  1. _True_Religion
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.13
    Source Code:
    https://github.com/FuckingProblems/GambleBar-2
    This plugin currently only supports mc version 1.13.1 and 1.13.2
    [​IMG]

    *Please be aware that this plugin is not yet complete and there will be many improvements added, such as features and messages for virtually all functions. I am releasing this beta version now so hopefully I can constructive feedback.*

    After a very long break from working on bukkit plugins, I've decided to re-write one of my favorite creations, GambleBar. If you'd like to download this just to see if it's something you like (maybe report any bugs you find too?), feel free. I plan on updating GambleBar until I feel that it's reached it's full potential.

    Originally inspired by an old server called Gontroller, I created GambleBar to be a fun way for users to balance their economy, as well as provide players with a little excitement.

    GambleBar allows players to buy gambling drinks from a bar via command or a specified npc. When a player buys and drinks a GambleBar drink, there is a chance that they win a reward. These NPCs will not move or take damage from any damage source. Drinking will then yield a loss or a win.


    Features:
    • Create custom drinks with a specified cost, probability of winning, and rewards (server currency and commands run through console).
    • Unlimited number of bars and gambling entities (seperate inventories with seperate drink).
      • Separate permissions for each bar.
    • Access bars via command AND via gambler entities (custom villagers).
    • Ability to give players a drink via a command
    • Anti-dupe protection to prevent drinks being duped via bar inventory
    • Nearly 100% customizable
    • New: Ability to remove gambler Villagers by clicking them with with a golden carrot. Permission node "gamblebar.admin.remove.entity" required. (Added in 2.2 Beta).
    • NEW: Ability to give players drinks via command. Use "/bar give <playerName> <barName> <inventory slot>". Permission required: "gamblebar.admin.give". Note: <inventory slot> starts at 0. (Added in 2.3 Beta).


    [​IMG]

    Commands: (aliases are /gamble and /bar).
    • /gamblebar help - Open help menu
    • /gamblebar - Open default bar
    • /gamblebar <barName> - Open a specific bar by name
    • /gamblebar set default <barName> - Sets the default bar
    • /gamblebar spawn <barName> <entityName> - Spawn a gambler entity for a specific bar.
    • /gamblebar create <barName> <inventoryTitle> <inventorySize> - Create a new bar, specifying the bar name, and the title and size of the inventory
    • /gamblebar delete <barName> - Deletes a bar, specified by the bar's name.
    • /gamblebar give <playerName> <barName> <inventory slot> - Gives a player a certain drink from a certain bar. (<inventory slot> starts from 0. For example, the first row of an inventory would be 0 to 8.

    Permissions:
    • gamblebar.help - /gamblebar help
    • gamblebar.default - /gamblebar
    • gamblebar.<barName> - /gamblebar <barName>
    • gamblebar.admin.* - Access to all admin features
    • gamblebar.admin.setdefault - /gamblebar set default <barName>
    • gamblebar.admin.spawn - /gamblebar spawn <barName> <entityName>
    • gamblebar.admin.create - /gamblebar create <barName> <inventoryTitle> <inventorySize>
    • gamblebar.admin.delete.bar - /gamblebar delete <barName>
    • gamblebar.admin.remove.entity - Ability to remove gambler villagers by clicking when holding a golden carrot.
    • gamblebar.admin.give - /gamblebar give <playerName> <barName> <inventory slot>



    [​IMG]
    Code (YAML):

    #Should new bars have an inventory automatically generated?
    setDefaultBar
    : true

    #What is the name of the default bar?
    defaultBarName
    : firstBar

    #This is a list of bar id's and names
    #Syntax is "barId:barName"
    barList
    :
    - "0:firstBar"

    #This is a list of entity's that are "bar tenders" gamblers
    #Syntax is barId:entityName
    entityList
    :
    - "firstBar:&e&lBar Gambler"

    bars
    :
      0
    :
        title
    : "&c&lGambleBar Bar"
        size
    : 9
        inventory
    :
          0
    :
            name
    : "&6&lBeer"
            lore
    :
            - "&eWin odds
    : &a%odd%%"
            - "&ePrice
    : &a$%price%"
            - "&eReward
    : &a$%reward%"
            - "&fRight click for a chance to win!"
            odd
    : 40
            price
    : 500
            reward
    : 1000
            rewardCommands
    :
           - "broadcast &c%player% &ehas won a drink!"
          1
    :
            name
    : "&6&lWine"
            lore
    :
            - "&eWin odds
    : &a%odd%%"
            - "&ePrice
    : &a$%price%"
            - "&eReward
    : &a$%reward%"
            - "&fRight click for a chance to win!"
            odd
    : 42.50
            price
    : 1000
            reward
    : 2000
            rewardCommands
    :
           - "broadcast &c%player% &ehas won a drink!"
     
    Code (YAML):

    #You must be a player to use this feature
    mustBePlayer
    : "&6[&fGambleBar&6] &cYou must be a player to use this feature!"

    #List of messages sent from /gamblebar help
    help
    :
    - "&6[&fGambleBar&6] &6>> &f--------------------------------------------------- &6<<"
    - "&6[&fGambleBar&6] &f/gamblebar &e- Open the default bar."
    - "&6[&fGambleBar&6] &f/gamblebar <barName> &e- Open specified bar."
    - "&6[&fGambleBar&6] &f/gamblebar create <barName> <title> <size> &e- Create new bar."
    - "&6[&fGambleBar&6] &f/gamblebar set default <barName> &e- Sets the default bar."

    #Message sent to player who creates an inventory with an invalid size. (Size must be multiple of 9).
    invalidSize
    : "&6[&fGambleBar&6] &cInvalid inventory size. Size must be a multiple of 9."

    #Message sent when a player gets money from gambling
    giveMoney
    : "&6[&fGambleBar&6] &aYou're received $%reward%."

    #Message sent when a player loses a bet
    lostGamble
    : "&6[&fGambleBar&6] &cSorry, you've lost your bet!"

    #Message sent when a player buys a drink
    withdrawnMoney
    : "&6[&fGambleBar&6] &c$%price% has been withdrawn from your account."

    #Message sent when a player can't afford a drink
    insufficientFunds
    : "&6[&fGambleBar&6] &cSorry, you don't have enough money!"

    #Message sent when player doesn't have permission
    noPermission
    : "&6[&fGambleBar&6] &cSorry, you don't have permission."

    #Message sent to player who removes a gambler entity
    removedGambler
    : "&6[&fGambleBar&6] &fThe gambler entity was removed!"

    #Message sent to player when they receive a drink via command
    drinkReceived
    : "&6[&fGambleBar&6] &fYou have received a &c%drink% &f drink!"

    #Message sent to the command sender when the bar name or slot id is invalid when using /bar give
    invalidDrink
    : "&6[&fGambleBar&6] &cError, either the bar name or slot ID is an invalid drink."
     


    Upcoming Updates:
    • Support for other MC versions coming soon.
    • And more!

    [​IMG]
    These videos are outdated and were made for the 1.x version of GambleBar. Updated demo videos coming soon hopefully :cool:




    [​IMG]
    Your server must be running Vault to use this plugin.


    *If you experience a bug with this plugin, please alert me via PM. Also, please include the error log.*
    Mcblond9 likes this.

Recent Reviews

  1. BiggestPotato
    BiggestPotato
    1/5,
    Version: 2.3 Beta
    Doesn't work, at all. The developer doesn't update anymore. If you want an actual plugin that works, please get a custom one.
    1. _True_Religion
      Author's Response
      User was rude and felt entitled to my work, then got upset when he was told otherwise. Conversation: http://prntscr.com/p2v0fz
  2. Mcblond9
    Mcblond9
    5/5,
    Version: 2.2 Beta
    Really good plugin and I think that you can do a lot and still get a lot out of it I am very curious what else comes to it works great on 1.13.2 sorry for my bad english :c

    Orginal text:

    Richtig gutes plugin und ich denke dass man damit noch viel machen kann und noch viel raus zu holen ist ich bin sehr gespannt was noch alles klappt klappt auch wunderbar auf 1.13.2
  3. herobrine941
    herobrine941
    5/5,
    Version: 2.1.2 Beta
    ================
    Super good plugin that I recommend and a developer to listen!
    ================
  4. BlvckBunny
    BlvckBunny
    5/5,
    Version: 2.1.2 Beta
    Very good plugin. Though I notied when adding custom bets that I was only able to add a total of 3 and the rest would make it not even open up the menu anymore. Besides that It's amazing hope that gets fixed tho! :)
  5. LordDarz
    LordDarz
    4/5,
    Version: 2.1.2 Beta
    Primero que nada me disculpo por no saber ingles y responderte en español. Pero pasando al tema del Plugin, me gusta la idea. Si tuviera que recomendar algo, sería que aparte de dar recompensas monetarias (Economy) tenga la posibilidad de otorgar Items o ejecute comandos. Aparte de que no se enfoque 100% en bares, esto podría aplicarse por ejemplo en una lotería si se le bajara el porcentaje. Pero sacando todo esto, muy buena idea y plugin !
    1. _True_Religion
      Author's Response
      Gracias por la revisión. También puedes dar otras recompensas, usando comandos de la consola. En la ranura config.yml de cada elemento, en "rewardCommands" puede hacer que la consola ejecute los comandos que desee.
  6. Top
    Top
    5/5,
    Version: 1.4.2
    I searched it for a long time. It is the best plugin. It can work smarter, develop further. Thank you.
    1. _True_Religion
      Author's Response
      I appreciate the review. I'm really busy right now at university, but I'm trying to find time to re-write this plugin to be more efficient and bug free, for version 1.13.
  7. xdSimixd
    xdSimixd
    4/5,
    Version: 1.4.2
    Good plugin, but now working for me because when i drink the potions nothing happen.
    1. _True_Religion
      Author's Response
      This plugin currently doesn't support 1.7/1.8 versions.