Sign Casino
Sign Casino
Version 1.5.2 is out now!!!
(Download may be delayed due to approval time)
Dependencies [Vault]
Sign Casino is a fully automated interaction system for Casino games, all through sign interations.
Right now the only working games are Slot Machines and Blackjack, but there is more to come!
Slot Machines
The Slot Machine is first of many Casino Games to come to Sign Casino. First off there are 2 types of Slots, player owned, and server owned. Player owned Slots are created by placing a sign with [Slots] on the first line, and the amount of the roll on the 2nd (Picture to come), and optionally place the initial deposit amount on the third line.Player owned slots need to have money put into them by the owner in order for them to work, you can do this by doing /slots deposit <amount> and then left-clicking the sign or placing the amount on the third line during initial sign creation.
The second kind of Slot is the server owned Slot (my preference). To create this Slot, put [Slotss] on the first line and the amount per roll on the second, and that's it! These signs don't need any money to be in the machine and work automatically.
Blackjack
Much like its counterpart Slot Machines, Blackjack is created in the same fashion by placing [Blackjack] on the first line to create a player-owned Blackjack Table, and [Blackjacks] on the first line to create a server-owned Blackjack Table. Optionally, you can place an initial deposit amount on line two for player-owned Tables, just like in Slot Machines. You can also optionally place a max bet value on the third line when creating a Table to set the max bet of that Table, if no value is found, it will default to your config option. Other than that, the Blackjack Table functions a lot like its Slot Machine counterpart.
Commands
Slots
- /slots info - This command shows info about the Slot Machine like roll count, owner, etc.
- /slots withdraw <amount> - This command will take the designated amount from a player owned Slot Machine.
- /slots deposit <amount> - This command will put in the designated amount to a player owned Slot Machine.
- /slots save - This command will save all data.
- /slots load - This command will load all data.
Blackjack
- /blackjack info - This command shows info about the Blackjack Table like hands played, owner, etc.
- /blackjack withdraw <amount> - This command will take the designated amount from a player owned Blackjack Table.
- /blackjack deposit <amount> - This command will put in the designated amount to a player owned Blackjack Table.
- /blackjack save - This command will save all data.
- /blackjack load - This command will load all data.
For more information on how to play Blackjack, here the Wiki here!
Current Features
Slots
- Right-click to roll a Slot Machine!
- Fully configurable roll options, names, amount, chance, letter abbrivs. etc.
- Configurable options for roll-speeds, money multipiers, partial-wins, and saving options.
- Permissions for almost all commands.
- Unlimited number of Slot Machines!
Blackjack
- Right-click to join the Blackjack Table!
- Left-click while betting to raise your current bet.
- Fully configurable options like, bet increments and max bet per table.
- Configurable options for default max bets, bet increments, and saving options.
- Permissions for almost all commands.
- Unlimited number of Blackjack Tables!
Planned Features
- Code Cleanup.
- Other Casino Games.
- Allow other players to make their own Roll Options System via ingame commands.
- Suggestions from players.
Change Log
Version 1.5 : 9/30/2012
- Minor visual updates, nothing major.
- Money payouts will work on all machines as long as you are not in Link to Account mode.
- Updated to CB 1.3.2-R1.0
Version 1.4.1 : 7/20/2012
- Fixed Server Blackjack Tables from not paying out money. Sorry!
Version 1.4 : 7/13/2012
- Fixed Issue when creating Blackjack Tables without permission would not destroy the Sign.
- Changed some coloring with Blackjack Tables to make total values more apparently readable.
- Fixed a bug where players could re-access multiple tables by going through another tables sequence twice.
- Fixed issue with money always being deposited into the machine, regardless of LinkedToAccounts Mode, if this mode is true, money will now properly go right to a players account.
- Fixed all remaining bugs dealing with LinkedToAccounts Mode, (Hopefully).
- Updated to CB 1.2.5 R4.
Version 1.3 : 6/26/2012
- First attempt at fixing the issue with Blackjack signs failing to update after an unknown issue.
Version 1.2 : 5/12/2012
- Fixed a Major Bug with Blackjack Tables throwing NPE Errors on Player Movements! Sorry this took so long to fix, I had to wait quite some time for someone to provide the actual error from the log as I could not recreate the error given the very bad reports of the error =)
Version 1.1 : 5/2/2012
- *NEW* I am happy to announce the addition of Blackjack to the Sign Casino! More on how to make and use Blackjack will be in the Wiki, which I am typing out right now!!
- Many fixes to loopholes/exploits/breaks in Slot Machines.
- Code Cleanup and some Transitions on Slot Machines to using a Casino-Core for more games.
Version 1.0.3 : 4/26/2012
- Changed the way Slot Machines are created/destroyed. Now to create the Slot Machine, all you do is place the sign with [Slots] for a player owned Machine or [Slotss] for a server owned machine on the first line, the cost on the second line.
- Now to delete a Slot Machine, just break the sign.
- Added feature upon creating a player owned Slot Machine, you can enter in a starting amount you want deposited into the machine on the third line.
- Added linked-to-accounts feature. This allows player-owned Slot Machines to be directly linked to players Economy accounts.
- Added feature so upon removing a machine, it will automatically deposit the remaining money into it's Owners account.
- Fixed the Slot display when rolling to not shift as much.
- Fixed Displays on Slot Machines when using non int values.
- Fixed negative deposit/withdraw dupes.
Version 1.0.2 : 4/24/2012
- Added feature so that players may only roll one Slot Machine at a time.
- Added feature to the rolling looks a lot cooler.
- Cleaned up the save/load code so Slot Machines are never missed, respectively.
Version 1.0: 4/13/2012
- Initial Release.
Notable Bugs
- Upon roll, the line with the rolls shifts to the left. Plugin still works, just visually buggy. =)
- If Slots are on worlds that are not defaulted, or the world is not loaded in before Sign Casino loads, the slot will error out.
- Sometimes Sign text will vanish on Blackjack tables, the Table still functions but text does not update.
Permissions!
Slots
- sc.admin - This permission gives access to all Sign Casino Plugins.
- sc.slots.create - This permission gives power to create Slots. Defaults Op
- sc.slots.createserver - This permission gives power to create server Slots. Defaults Op
- sc.slots.delete - This permission gives power to destroy Slots. Defaults Op
- sc.slots.info - This permission allows palyers to use the slots info command. Defaults All
- sc.slots.withdraw - This permission allows players to withdraw money from Slots. Defaults Op
- sc.slots.deposit - This permission allows players to deposit money to Slots. Defaults Op
Blackjack
- sc.blackjack.create - This permission gives power to create Tables. Defaults Op
- sc.blackjack.createserver - This permission gives power to create server Tables. Defaults Op
- sc.blackjack.delete - This permission gives power to destroy Tables. Defaults Op
- sc.blackjack.info - This permission allows palyers to use the blackjack table info command. Defaults All
- sc.blackjack.withdraw - This permission allows players to withdraw money from Tables. Defaults Op
- sc.blackjack.deposit - This permission allows players to deposit money to Tables. Defaults Op
Reporting Bugs/Issues
When Reporting An Issue, Please Do The Following
- Your Craftbukkit version.
- Current version of the Plugin.
- Describe the exact situation in which the issue occured (listing all applicable info, names, what sign reads, etc etc)
- Copy/Paste the error from the Console Log.
Installation and Help
- Extract the Games from the .zip file.
- Drop SC_Slots.jar and SC_Blackjack.jar into /plugins directory.
- Reload your plugins.
- Enjoy!
- Wiki Page!
How To Use Video (By Samkio and xTorrent)
http://www.youtube.com/watch?v=tPQpR8WH8W0
Donations
Happy with my work? Want to help out? Want to encourage more Sign Based plugins?
Feel Free To Donate!
Hey, my players LOVE THE CASINO! Half of them are always in it. Great for my economy :) Anyway, can you make it so when you move your blackjack doesn't mess up, make the slots centered (I know you are aware of that) and protect blackjack from people in creative?
EDIT: AND MAYBE GROUP GAMES LIKE TEXAS HOLDEM OR CRAPS OR ROLLETTE ;DDDDD! they may be impossible though..
EDIT: It would be cool, like if every configurable amount of money spent they get free refreshments like regular casinos! (milkkkkk)
Well anyway I know this is a lot of work! Sorry to ask so much :D
@Avatus07
2/3
What does 'Partial-Win' mean in this situation?
Okay, just one more thing... nothing wrong with your plugin its just iConomy I believe but do you know how to fix this? It happens when an inventory is full and people are getting payed.
2012-07-26 03:46:26 [WARNING] Task of 'Sign Casino Slots' generated an exception java.lang.RuntimeException: Unable to set balance, inventory is overfull at com.iCo6.IO.InventoryDB.setBalance(InventoryDB.java:195) at com.iCo6.IO.InventoryDB.setBalance(InventoryDB.java:59) at com.iCo6.system.Queried.setBalance(Queried.java:398) at com.iCo6.system.Holdings.setBalance(Holdings.java:26) at com.iCo6.system.Holdings.math(Holdings.java:103) at com.iCo6.system.Holdings.add(Holdings.java:58) at net.milkbowl.vault.economy.plugins.Economy_iConomy6.depositPlayer(Economy_iConomy6.java:147) at com.brandenBoegh.SignCasino.Slots.SlotsEconomyHandler.addAmount(SlotsEconomyHandler.java:64) at com.brandenBoegh.SignCasino.Slots.SlotsEconomyHandler.addAmount(SlotsEconomyHandler.java:70) at com.brandenBoegh.SignCasino.Slots.SlotRoller.dealWinnings(SlotRoller.java:232) at com.brandenBoegh.SignCasino.Slots.SlotRoller.run(SlotRoller.java:72) 2012-07-26 03:46:27 [WARNING] Task of 'Sign Casino Slots' generated an exception java.lang.RuntimeException: Unable to set balance, inventory is overfull at com.iCo6.IO.InventoryDB.setBalance(InventoryDB.java:195) at com.iCo6.IO.InventoryDB.setBalance(InventoryDB.java:59) at com.iCo6.system.Queried.setBalance(Queried.java:398) at com.iCo6.system.Holdings.setBalance(Holdings.java:26) at com.iCo6.system.Holdings.math(Holdings.java:103) at com.iCo6.system.Holdings.add(Holdings.java:58) at net.milkbowl.vault.economy.plugins.Economy_iConomy6.depositPlayer(Economy_iConomy6.java:147) at com.brandenBoegh.SignCasino.Slots.SlotsEconomyHandler.addAmount(SlotsEconomyHandler.java:64) at com.brandenBoegh.SignCasino.Slots.SlotsEconomyHandler.addAmount(SlotsEconomyHandler.java:70) at com.brandenBoegh.SignCasino.Slots.SlotRoller.dealWinnings(SlotRoller.java:232) at com.brandenBoegh.SignCasino.Slots.SlotRoller.run(SlotRoller.java:72)
@silentnight18
Actually I found in a way to tie in iConomy and items so I'm good, but maybe after you add like a slot sign raining diamonds (hint hint) I'll donate :D
@TheOneRelic
Ive stated b4, I have planned to add a lot more games, I even started already on Roulette, but as I like to add much more aesthetically pleasing features, Roulette has provided a few blockades that have kept me from continuing. And also as I have many plugins on going atm, some Live, some still in the works, that are a bit more main stream than my Casino games, I don't find the time and effort to really put into the games. Some day I will get more, but probably not in the current future. Maybe if I received more donations on my lower end plugins, they would get more attention. But as it stands, I wouldn't plan on anything new for a bit =)
@dylpickles1997
It probably wouldn't be too hard to actually implement but I just never saw the need being most servers use an economy system. If you are willing to donate to this plugin, I would be more than willing to add that feature for you. It would take me a couple days to get that in as I have a few major tweaks im currently working on for some of my other plugins, and I am really busy IRL. But I could get that in prolly by Sunday night. Let me know via PM if thats the case. =)
Hey you should add Roulette as one of the casino games. People on my server have been asking for that.
can you make this open sourced?
Hey... i'm actually building a MEGA casino right now.. but I use an item based currency because my users tend not to understand commands... would it be hard to add support for this? (signs take from inv, pay to inv?) I'm willing to pay if you're not entirely up to it.. not alot b/c I don't have many donators on my server but maybe 10 dollars. Pleeasee? :)
@finamenon
I'll re look into Linking feature, for now, just unlink and withdraw the $$
@silentnight18
@finamenon
Provide the situation.
Blackjack tables are still not paying out for me. I downloaded this plugin today, as of July 24.
Any idea what is wrong? =\
@michaelhampton
Maybe i forgot to put Slots in the new zip, 1.4.1 was just a fix for Blackjack, just use the older 1/4 Slots, since there was no changes.
@Rsredmage
MineCars is in a fine/stable state, no maintenance is required. Once it is, or i come out of my coding hiatus, MineCars will see updates. For now, its sitting just building a basis.
i'm preforminf maintainance on my server and i removed and redownloaded this plugin (which is awesome btw) and i've tryed it several times but all i get is the blackjack file. i want both on my server but it just wont take. i hope you can fix this cuz i would really like to keep the casino. thank you for your time
Hey Silent, You neglecting your Minecar plugin or what? I see you posting on your other plugs except that one. If you are done I'll move on
After downloading your file, the version name is labeled 1.1 Is there a missing link or unapproved download?
Version 1.4.1 is out now!!!
(Download may be delayed due to approval time)
I just noticed that my blackjack isn't paying out as well today. Maybe a 1.4 glitch I skimmed over?
I have one tiny problem! Why BlackJacks dont give money to players? With slots all is ok and player get wining money, but blackjack dont give. (Its server sign)
And one more thing about slots. What i configure wrong if i put Slotss for 10 then player spinn and after like 4 spins it get like 300 money. Its insane and the players earn a lot of money. Then i try to put on 500 every spin and player spinn after 4 time 3*C and get like 17000 money. Is it the casino shoud be or i configure something wrong?