[FUN] BlackJack 1.8 - Wanna play blackjack? (iConomy, Permissions) [1060]

Discussion in 'Inactive/Unsupported Plugins' started by xeror, Apr 21, 2011.

  1. Offline

    xeror

    BlackJack - play for fun:
    Stable version: 1.8 (14.6.2011, supports Bukkit[960])
    EXPERIMENTAL version: (16.6.2011, supports Bukkit[1060])
    Last topic edit: 11.10.2011

    DEVELOPMENT PAUSED

    This plugin can use: iConomy v5 & Permissions v3(node BlackJack.use)

    Its just a simple plugin for playing BlackJack with iConomy money or with some items.

    Commands:
    Show Spoiler

    /bjack game [bet] - deal card to you & begin game (same: /bjack g)
    /bjack hit - deal next cards to you (same: /bjack h)
    /bjack stand - ends your turn (same: /bjack s)
    /bjack double - doubles bet, takes one more card and ends turn (same: /bjack db)
    /bjack split - splits cards to two hands (same /bjack sp
    iConomy commands:
    /bjack checkin [value] - transfers money from iConomy account to your game account (same: /bjack ci)
    /bjack checkout - transfers all money from your game account back to iConomy account (same: /bjack co)
    Non-iConomy commands:
    /bjack exchangecredit - exchanges item stack in your hand to credits, if it's possible (same: /bjack ec)
    /bjack exchangeitem [item name] - exchanges all credits to items, if it's possible (same: /bjack ei)

    Downloads:
    Show Spoiler

    Changelog:

    Version 1.8
    • Main config file fix
    • Permissions(v3) support
    • Possibility to play BlackJack without iConomy(v5)
    • Color prefixes for cards
    Show Spoiler

    Version 1.7
    • Code for split fix
    • Config file fix
    • Winning conditions fix
    • iConomy v5 only support
    • Custom odd on BlackJack combination (default 3:2)
    • Rule: Dealer wins after player have more then 21
    Version 1.6
    • You can now split same cards in second round to two hands
    • New shortcommands system (/hit equals /bjack hit)
    • Training game fix
    Version 1.59
    • External config file fix
    • Code optimalization
    • Alpha source code published
    • New commands list
    Version 1.5
    • After double player takes one more card and holds
    • External config file for limiting bets
    Version 1.4
    • Blackjack rule "Dealer wins a tie" removed
    • You can now double your bet in the first round
    Version 1.3
    • PlayerQuit event fix (if player leave game with game in progress he lose his bet)
    • One easter egg ;)
    Version 1.2
    • Credit add after win fix
    Version 1.1
    • Win conditions fix
    • Connected with iConomy
    • Some protections...
    Version 1.0
    • First release

    Planned features:
    Show Spoiler


    • BOSEconomy support (complete, included in experimental version)
    • Player VS player games
    • Stats
    • Better exchange system
    • Posibility to turn of tips
    • Minor changes in BlackJack system (i know lot of bugs...)
    • Signs interface (it freaking hard to code)
    Any more ideas?
     
    Wozzlegummich, Samkio and kahlilnc like this.
  2. Offline

    Plague

  3. Offline

    Black_Jack

    WOW
    The plugin that named my own name 0_0
     
    beebsproduction likes this.
  4. Offline

    Clancy Dawson

  5. Offline

    TACTICALboom

    i knew i wouldn't be the only one to laugh at that :D
     
  6. Offline

    xeror

  7. Offline

    anonymous

    But will it blend?
     
  8. Offline

    xeror

    Any bugs?
     
  9. Offline

    RebornSheep

    Yeah, i get a bug. When someone log into the server and they are starting a blackjack game and they are relogging, the blackjack plugin do not work. I have to restart the server before it is working again :(
    And if they are relogging without have done a chechout, they are loseing the coins that they have inserted on thair account.

    Can you fix this?
     
  10. Offline

    Unscrewed

    Read his Signature: "Error? It's not my fault...".
    Hehe, just kidding. :-P

    Just play with Black_Jack while giving him a /bj!
    hehe.
     
  11. Offline

    skillinazn

    I don't know if this is a bug but pushes don't work in this plugin. And for that, I lost 200 coins even though me and the dealer had the same hand >.>

    Time to spawn more coins.
     
  12. Offline

    Trevor_

    Suggestion:
    Create the interface on signs.
     
    Loart likes this.
  13. Offline

    xeror

    there's dealer wins ties rule

    i'm gonna check this, thx for tip

    EDIT: Fixed, try 1.3 ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  14. Offline

    skillinazn

    Aww, it should just be a regular tie than that. Doesn't seem so fair that having the same cards means that the dealer wins. It would be fairer if the person with the higher type of card wins the tie.
     
  15. Offline

    xeror

    Good idea, I'll think about it

    Ok I'll edit conditions in 1.4 maybe...

    EDIT: ok rule "Dealer wins a tie" removed ;)
     
  16. Offline

    Erizo

    Nice Plugin ! I've add it to my casino =)

    Maybe you could improve some rules (from official rules) : (those suggestions aren't criticism but ideas for the improvement of your great plugin).

    - if a player bust (cards over 21) then he should loose the game automatically (the dealer doesn't even draw his cards)

    - Dealer hits (draw a card) on 16 or fewer and stands (stop drawing) on 17 or higher.

    - If it's a draw : the player wins his bet. (the game is canceled)

    - In casinos Blackjacks (AK or AQ or AJ or A10) pays 1.5 (if you bet 4 you win 6)

    - if you double your bet, you can only draw one and only one card ( you can only "double" after the dealer gave you your cards).

    In traditional blackjack - the dealer give you 2 cards at the biginning and draw one for himself (players can see this card).

    And if you have time you could add some optional features such as : insurances ; split ...

    Sorry for my english ! Errors? it's not my fault i'm french ! ;)
     
  17. Offline

    xeror

    Thx for tips :)
    2) it's already set, dealer hits soft cap 17
    5) I'm working on it in 1.5
    6) it's a bit hard to code it (maybe in 2.0)
    7) I'm gonna code split for 1.6, insurances? maybe 2.0 :D
    1,3,4) version 1.7 (optional rule choice in config file ;) )

    Now I'm a bit busy with university, so don't expect new versions soon :D

    I'm Czech so my english is freaking bad as you see... ;)
     
  18. Offline

    Klausar

    Is it updated for 733?
     
  19. Offline

    xeror

    I think it's work on it...

    Ok so:
    Read the planned features ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  20. Offline

    Erizo

    Sorry =) didn't saw them ! :oops:

    I'm really looking forward to 1.6 & 1.7 - i will wait patiently !
     
  21. Offline

    ShinChan

    Any chance of a non iConomy version, where we can bet items?
     
  22. Offline

    DJ_Idol

    Very nice :) Once the signs interface is added I will definitely test this out on my server.
     
  23. Offline

    marcusbest

    is possible add one versus one between two players?
     
  24. Offline

    xeror

    ShinChan: Non Iconomy version maybe, but betting items? nope..
    DJ_Idol: First of all i need to figure it out ;)
    marcusbest: i'm thinking about it ... maybe in v 2.x
     
  25. Offline

    2Bucks

    I want to give players more of an incentive to play this. Can I give them like 10% more than they bet if they win? That way players might want to play it more

    apparently attempting to double the money when a player doesn't have enough removes their current balance

    Also, I have my config file as:
    min-bet: 1
    max-bet: 1000
    min-buyin: 10
    max-buyin: 1000

    But players are still betting 10,000 on games.
    Finally, can you set it so that it doesn't display a chat message? It kind of floods the chat when 30+ players are all playing

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  26. Offline

    xeror

    2Bucks: im gonna check it

    EDIT: Aww I am so sorry :D i made file writer and i forgot to make filereader :/ it'll be fixed soon
    EDIT2: There's a small problem, i rewrote about 70% of code at last 24h now I'm debugging it ... it'll took about day two..
     
  27. Offline

    2Bucks

    Thank you for your hard work, my users loved the plugin while I had it running. Lookin forward to the fix
     
  28. Offline

    xeror

    Ok v1.59 released ... report me bugs...
     
  29. Offline

    A520

    I have a problem with the plugin, aktualnieu┼╝ywam iConomy5 and I received the following error:
    Code:
    [SEVERE] Could not pass event PLUGIN_ENABLE to BlackJack
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at BlackJack.PluginListener.onPluginEnable(PluginListener.java:30)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  30. Offline

    xeror

    Hmm new iConomy version... I'll fix it in 1.7
     

Share This Page