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

    JorganPubshire

    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.



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

    Changelog

    v1.5:
    • Fixed some bugs
    • Removed some debug text
    • Began block-based gameplay
    v1.6:
    • Finished block-based gameplay
    • Added Slot object
    • Minor bugfixes
    v1.7:
    • Added betting to block-based gameplay (maybe officially finished with block-based)
    v1.8:
    • 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
    v1.9:
    • 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
    Full CHANGELOG

    v2.0:
    • 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
    v2.1:
    • Added slot machine protection
    • Changed how slot machines are built
    • Added separate levels of winning
     
    ColbyM and NEO like this.
  2. Offline

    Monkey_nuts

    i found out what was wrong it wasn't in full caps
     
  3. Offline

    JorganPubshire

    Ok, whatever it takes. As long as your issue is resolved then I'm happy.
     
  4. Offline

    number1_Master

    um are you supposed to mine the ore out :confused:
     
  5. Offline

    JorganPubshire

    No, it will automatically change when you pull the lever again.
     
  6. Offline

    number1_Master

    :( well ppl will start mining them out
     
  7. Offline

    JorganPubshire

    I take it that you put no effort into reading my TODO list... It clearly states that I am going to add in a prevention system for this.
     
  8. Offline

    jkernan7553

    Yo, great plugin here man. Can you please make it so i can place 2+ slots at once? Or is something just messed up with my plugin?

    Thanks!
     
  9. Offline

    JorganPubshire


    You should already be able to place multiples. I have three on my server.
     
  10. Offline

    kahlilnc

    Permissions ? ? ?
     
  11. Offline

    JorganPubshire

    We'll talk about it later.
     
  12. Offline

    HyperHeadshot12

    I decided not use use the plug-in and now I can't delete the .zip file! How do I remove it?
     
  13. Offline

    JorganPubshire

    Method 1: Click on it and hit the delete key.
    Method 2: Click on it, hold shift, and hit the delete key.
    Method 3: Right click on hit and choose delete.
    Question: Why do you have a zip file? The download is a jar file.
     
  14. Offline

    kahlilnc

    Anyone can still make them right?

    EDIT: SLOT MACHINE
     
  15. Offline

    JorganPubshire

    Slots are still fair game for creation, but require the dispenser block to function. If you surround the dispenser with blocks, then only you will know how to make the slots work.

    This is subject to change. I am planning on making the dispenser give non-iConomy users item rewards, so it can't be surrounded by blocks when that feature is implemented. I will either make a permission for making slots or add another block under the dispenser for security.
     
  16. Offline

    JD DeGaetano

    I'm SUPER excited to use this plugin on my server. But, I can't implement this into my complicated roleplaying system until this supports permissions. Help out the permissions users! :D
    Thanks!
     
  17. Offline

    AndyFox42

    As soon as this plays nice with my superperms, I'm on it!
     
  18. Offline

    crjalbert

    permissions?
     
  19. Offline

    pelian

    I've a question: Will it work with the plugin "lightSwitch" (http://forums.bukkit.org/threads/me...bal-light-switches-to-your-server-1060.22278/)?
    Cause there you put lever on a diamondblock, and then you have a day/night switch. So when I would build a slotmachine, the I've also created a Lightswitch. And every time an user toggles the lever, it will be night or day. And that would be quite annoying :(
    So do you know, if there is any way to manage that problem ? PLZ let me know :)
     
  20. Offline

    9mvp9

    It wont work on my server. Please update!
     
  21. Offline

    CraftyMclovin



    HELLO,

    I tried using this plug in but i got this,

    2011-10-05 03:25:15 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'blackjack' in plugin Casino vv2.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at Base.CardPlayer.<init>(CardPlayer.java:30)
    at Games.BlackJack.BlackJack.addPlayer(BlackJack.java:176)
    at Main.addPlayer(Main.java:438)
    at Main.onCommand(Main.java:310)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 17 more

    ALSO Along with this i was getting,

    2011-10-05 02:58:23 [SEVERE] Could not pass event PLAYER_INTERACT to Casino
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at Slots.finish(Slots.java:158)
    at Slots.changeEW(Slots.java:119)
    at Slots.evaluate(Slots.java:80)
    at Slots.<init>(Slots.java:68)
    at BlockListener.onPlayerInteract(BlockListener.java:45)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)



    Oh last this before i go, Is there an installation guide because the .ZIP file has 2 files and a 'Casino' folder.. I'm a bit confused as to what goes where... usually you just put the .JAR file into plugins and it generates all the files and the Config.yml

    THANK YOU!
     
  22. Offline

    bubba1991

    I am having problems getting it to work with iconomy in 1.8.1 when i use slot machines it does not deduct any money from my iconomy account.
     
  23. Offline

    revo96

    Do you have a tuturial video on how to install and use in game
     
  24. Offline

    UsefulPawn

    Same with me, it doesnt deduct or give money, even though it says Lose[1] or Major/Minor Win [#].... please help.
     
  25. Offline

    CraftyMclovin

    same here i get the server error PLAYER_INTERACT with iconomy 1.8.1
     
  26. Offline

    CraftyMclovin

    I have an idea for this plugin.... MAKE IT COMPATIBLE WITH (CB1240) AND ICONOMY V6!!!!!!!!!!!!!!!!!! =D
     
  27. Offline

    JorganPubshire


    I am working on updating, but I am also working on keeping up with school work. It may not be apparent to anyone else, but I have a personal life to maintain and your "helpful suggestion" is really not that helpful. I will get to it when I can, but am not going to sacrifice my grades for your server. I'll let you know when I get it updated, until then, good luck on your server.

    -JorganPubshire
     
    CraftyMclovin likes this.
  28. Offline

    CraftyMclovin

    Fair Play sir... well done to you, i do appreciate your work and i understand you have a social life.. forgive me for my incompetence and keep me updated on when you upgrade the plugin =D

    PEACE!
     
  29. Offline

    hhaammzzaa2

    Hey, i have a problem
    I have got your plugin and the config stuff.
    First, theres no support for permissions so how the hell do i let a normal user for my server use the command. ( only ops can use.)
    everytime i do /blackjack , i get this error below.
    I no nothing about java
    Code:
    16:30:17 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'blackjack' in plugin Casino vv2.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at Base.CardPlayer.<init>(CardPlayer.java:30)
        at Games.BlackJack.BlackJack.addPlayer(BlackJack.java:176)
        at Main.addPlayer(Main.java:438)
        at Main.onCommand(Main.java:310)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 12 more
    
    help me!

    edit: this really needs permissions support. PermissionsBukkit preferably superperms!
     
  30. Offline

    Jerkmonkey1016

    Ok, couple of new games for the casino plugin: Craps, Roulete and bingo, thats all i got, and thats basically all there is inside a casino, or you could make some games up like, geuss a number or the one where there is 3 cups and there is a ball inside, I'm not sure, I dont know how Java coding language works, I hope to be a game programmer, but have not learnt the java coding langauge yet, All i know is Adobe and Alice :L stupid 18th centuary school :( anyway best of luck and i will definatley be including this in my server, best of luck and THANKYOU! for making this EPIC PLUGIN!

    YOU ROCK!
     
  31. Offline

    benthomas7777

    Can you make a video. As i can not get block game to work.
     

Share This Page