Inactive [FUN] Casino v2.1 - A casino games suite for Minecraft {Supports iConomy} [1060]

Discussion in 'Inactive/Unsupported Plugins' started by JorganPubshire, Jun 24, 2011.

  1. Offline


    Casino games for Minecraft:
    Version: v2.1

    This is a casino games suite for Minecraft, eventually it will contain up to 5 different games, but right now it has only blackjack and basic slot machines. I am open to suggestions as to which game to add once slot machines are completed.

    This is a full blackjack game which includes:
    • Betting
    • Hitting
    • Staying
    • Teleportation (if you don't want teleportation, turn off block-based gameplay)
    • Up to 5 players (any additional players will be placed in a waiting queue)
    • Block-based gameplay (optional)
    • And many more!
    • NOW WITH SLOT MACHINES (Alpha phase)
    If you plan on having block-based gameplay turned on, READ THIS SETUP GUIDE! Please stop asking me why you fall through the map when you /blackjack as it is described in the setup below!
    Block-based (open)

    To use block-based gameplay:
    1. Place two signs. (More if desired)
    2. On one of them put "[HIT]" and on the other put "[STAY]". Make sure that both are put on line two the the signs without quotation marks.
    3. If a player left clicks on the [HIT] sign, they will issue the /hit command
    4. If a player left clicks on the [STAY] sign, they will issue the /stay command
    5. If a player right clicks on the [HIT] sign, they will issue the /double command
    6. Place two more signs
    7. Aim at the first sign and chat /blackjack <SlotNumber> 1
    8. Aim at the second sign and chat /blackjack <SlotNumber> 2
    9. Repeat steps 6, 7, and 8 using the numbers 1-5 to replace <SlotNumber>
    10. Player's cards will now be displayed on the signs set up in steps 6-9
    11. BRAND SPANKIN' NEW FEATURE: During the betting phase, the signs that display the player's card will also be use for betting.
    12. If the player punches the first sign (Which will have [BET] on it) they will bet the amount shown on the second sign
    13. If they punch the second sign, the number on it will increase 1
    14. If they right click the second sign, the number on it will decrease 1
    15. Stand where you want players to be teleported to upon game start and use /blackjack <SlotNumber>, where SlotNumber is the numbers 1-5
    16. If you do not set the teleport points, do not ask me for help when you fall into the map

    Slot Machines (open)

    Slot machines are very simple to set up and use. Here's how:

    To set up:
    1. Place a diamond block
    2. Put a switch on it
    3. Place a dispenser under the diamond block
    4. DONE!
    To use:
    1. Activate the switch
    2. DONE!
    Currently a player is charged 10 dollars to play, they break even if the bottom two blocks match, and they profit 10 if all three blocks match.Because slot machines are not fully developed, they fall short in many ways.
    • They are in no way configurable
    • They could already exist on your server where you do not want them
    • They don't work if you don't have iConomy
    • They don't spin like a slot machine
    • They are all the same
    Don't worry, these things will be fixed soon. I am planning on adding a third block to the setup of the slot machines to reduce the likelihood of them already existing on your server.
    I will add different types of slot machines (with different win probabilities) and configurable winning amounts. I will add item rewards for non-iConomy users. I will work on better simulating a slot machine. And any other things requested that I find suitable to add in.

    Download/Source Code
    TODO (I swear I'll make a video soon ... maybe)


    • Fixed some bugs
    • Removed some debug text
    • Began block-based gameplay
    • Finished block-based gameplay
    • Added Slot object
    • Minor bugfixes
    • Added betting to block-based gameplay (maybe officially finished with block-based)
    • Added a toggle option for block-based and console-based gameplay
    • Plugin now prevents players from building and breaking blocks (if block-based gameplay is on)
    • Removed some debug text
    • Hitting (or right-clicking) a fence makes you leave the game
    • Fixed a bug in block-based gameplay setup caused by client
    • Added draw/push
    • Added a configurable starting amount for non-iConomy users
    • Dealer's hand is now shown to players

    • Added very basic slot machines (much work to be done yet)
    • Added maximum bet to blackjack
    • Fixed how currency displays through the plugin
    • Slightly modified betting signs for blackjack
    • Usual bugfixes
    • Added slot machine protection
    • Changed how slot machines are built
    • Added separate levels of winning
    ColbyM and NEO like this.
  2. Offline


    404 not found. Change /cards to /Casino in your download link
  3. Offline


    Sorry, I changed the name of the github repo and forgot to update my links. Thanks for letting me know.
  4. Offline


    Can not wait for the others. This is looking good. I always wanted more gambling on my server. :p
  5. Offline


    the latest 2 chaneglog entries need to be in the post
  6. Offline


    Must support latest RB (935), please test against that.
    Changelog must have two most recent visible changes in post, rest in spoilers (an addition of full changelog link is fine).
    There must be a download section, just like you did a section for "This is a full blackjack game which includes:".
    Consider renaming your plugin, there's another if not two "Casino" named plugins which may conflict...
  7. Offline


    Yeah ! I Love you !
  8. Offline


    How do I put something into a spoiler box? I didn't see that in the BBCodes list.
  9. Offline


    Much like this quote tag, just replace it with spoiler.

    [spoiler="Changelog, Close this changelog"]text[/spoiler]
  10. Offline


    Ok, I think I have it all worked out. Let me know if there is anything else that needs to be changed.

    Thanks, I love you too! ;)

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


    Looking forward to watching how this expands :)
  12. Offline


  13. Offline


    I just decompiled the jar and looked at the source. In my opinion, the coding is rather shoddy. I try to prepare my code for anything to prevent bugs, but I can see a lot of vulnerable points in that source code. I don't think that I want to take anything from it. Besides, I really want to add a slot machine into this plugin next.

    BTW,COMING SOON! (open)
    :DBlock based gameplay for Casino is on its way!:D
  14. Offline


    Thank you for at least looking at the plugin Jorgan, I will be waiting to see how this plugin will progress.
  15. Offline


    great! Im waiting so longtime for casino!

    next time will add the baccara? lol

    oh and I have some suggestion.

    1. when I type just '/bet'(didnt type ammount of money), it occurs internal error.
    please fix it xD
    2. can u make only command based version? without teleporting..please..T.T

    17:16:58 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@13c10cd
    17:16:59 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@260f26
    17:16:59 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@ac83c9
    17:17:06 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@747db9
    17:17:07 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@287b34
    17:17:08 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@10198d5
    17:17:08 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@13709b3
    17:17:09 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@1505d69
    17:17:11 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@1eaf267
    17:17:11 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@dc0427
    17:17:21 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@17c4232
    17:17:22 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@18e0de7
    17:17:23 [INFO] org.bukkit.craftbukkit.block.CraftBlockState@94e021
    17:17:23 [INFO] [EMAIL]org.bukkit.craftbukkit.block.CraftBlockState@5cd4b6[/EMAIL]
    why it always said like that when I punch blocks.
    It never happens after remove your plugin.

    and onemore. I got this error when I punch blocks in a row.

    17:17:53 [SEVERE] Could not pass event PLAYER_INTERACT to Casino
            at BlockListener.onPlayerInteract(
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
            at net.minecraft.server.NetworkManager.b(
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  16. Offline


    I can add a config option to disable it.

    I'm sorry, I didn't realize that I committed that code. Both of those are caused by the partially completed block-based control. The first one is just debug text, the error is caused by the fact that I'm only half done with it. I'll remove it in a minute and re-commit. I'm about to leave for a camping trip and won't be taking my laptop, so don't expect to see block-based gaming completed until after the weekend is through.

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


    installed and bookmarked and it looked amazing. its on my server @
  18. Offline


    When i type in /blackjack it teleports me underneath the map and kills me. Any ideas on how to fix that?
  19. Offline


    You have to set your blackjack teleport spots before entering a game. All five of the default spots are at (0,0,0).
    Use the command /blackjack <#> (where # is 1,2,3,4, or 5) to set the teleport areas. After that when you type /blackjack, you will be teleported to one of those spots if they are not occupied by someone else.

    Thanks, just let me know if any bugs surface and be careful with this plugin. I just realized that I don't restrict who sets the teleport areas and a griefer could set one above lava or a pit without the admin's knowledge. I will add a fix for this in the near future.

    I really want to check out your server but I won't be able to until around 11:30 tonight. I have to work and I'm closing.
  20. Offline


    thanks for your reply! have a good trip!

  21. Offline


    thansk for update!

    but please none teleport version..:'(
  22. Needs Permissions support, otherwise, interesting, looking forward to progress :)
  23. Offline


    Don't worry I'll include the no teleport in the next update. It will be in the form of a config file option.

    Exactly what do you want to see as far as permissions goes? Do you just want to restrict certain players from being able to enter the casino?
  24. Yes, but more importantly creating the warps, ofc :p
  25. Offline


    Rather than dealing with permissions, I think that I'll just build in a storage system for admin and mod names and only allow them to place warps.
  26. Offline

    Matt Gill

    I'm making a casino in my spawn for this. Hopefully more games are made soon :D.
  27. Offline


    can you please test this with the newest version of CraftBukkit [1000]?
  28. Offline


    It's been tested, even though it did not need it.
  29. Offline


    ok, thanks
  30. Offline


    Alright I'm having a couple problems.. I'm on 953. First off when I do /blackjack it puts me in the ground unloaded until I die, also it shows an internal error has occurred in chat. Then I try using /blackjack again and it says I'm already in the game, but I keep hitting the signs and nothing happens, and none of the commands work, and I can't try again because there's no end game command(that would be useful)

    Also I was going to figure things out as I used the plugin, but since I can't why do I type 1 & 2 for each slot #? Can I have multiple hit and stay signs for one game? I was going to put 4 booths facing a center and a person stands at each booth with their own hit and stay signs. And is it possible to have multiple games? I want to have multiple games with different minimum bet amounts for high and low stakes. I doubt there's multiple games because then /blackjack would have to send you to a random game.

    I'm not the type of person that understands things easily until it's all pointed out to me extremely detailed, and again I was going to just test it over and over in game until I figured things out but since I can't get the plugin working...

Share This Page