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!
@Dhrwessel
Real? try not being durp and turn off creative.
@daego
Sorry for my assholeish response last night, im sick as hell and not feeling good and I was on no sleep for three days, and I read your comment and was like this kid for real?! But I will look into this error as soon as I get a chance and feel up to diving into the code. :)
Hi,
I have a little problem i guess... Wen i want to deposit some money into a slot machine it saids that i have to left click te sign. But when i do this, the sign will break and it saids that my slotmachine had been removed!
Please help me!
yeah i found it later sry
and i have a error message for u,
i (think) it happens when i try to destroy a casino sign
my signs are protectet with LWC
did the same again after a restart and nothing happen
[SEVERE] Could not pass event BlockBreakEvent to Sign Casino Blackjack
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager.java:220)
at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:105)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:537)
at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:114)
at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlock cannot be cast to org.bukkit.block.Sign
at com.brandenBoegh.SignCasino.Blackjack.BlackjackListener.onBlackJackDestroy(BlackjackListener.java:178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 14 more
@daego
Real? Can you really not read? Or is it not stated clearly enough in the big bolded area labeled notable bugs that this is currently an issue?
And this is not a fixable bug as its not my issue, its Bukkits and Minecrafts with the way it interprets colors and colorcodes resulting in shifts.
Please try and read much carefully before posting foolish things ^_-.
P.S. No I will not be implying any alternative language system simply because its a minimal gain for a lot of work. It's implemented in my plugins where it is relevant to have it.
Hi, looks nice, but 2 things gone wrong for me,
the roled letters are to much left sided,
can u move them more to the right side to come in the middle ?
and, what about language support ? i will translate in german, if u wont send me a PM
@FordRacer2007
I am aware, and you are the fourth person to report this, just scroll down, however NONE of you have yet to report the actual error from the log so I can even begin to look into it. So please, for the fourth time, re-read on how to report a bug, its not even half a scroll up...
The error i'm getting spammed by in the Console is "[SEVERE] Could not pass event PlayerMoveEvent to Sign Casino Blackjack
java.lang.NullPointerException".
The sign seems to quit working once that starts to get spammed.
@silentnight18
good can't wate i love this plugin it work great.
i have another Suggestion XP Slots. not me asking my bro ask me to ask you
@lukeplechaty
Poker is not the next game on the drawing board, but I do already have a baseline concept for it when it comes its turn to be made =)
@FordRacer2007
Can you provide the actual error? Can't really do anything w/o it.
i have a Suggestion poker like blackjack
-----------------on the sign like
line 1: [poker]
line 2: play hand 2 cards and comp hand 2 cards show when fin
line 3: 5 cards when turn 3:1:1
line 4: to rais, stick and fold
-----------------ie make.
[poker]
max/min bet
amount to play
deposit
-----------------ie in game.
[poker]
A♠:6♥ - X:X
A♥:4♦:K♣:X:X
[hit] to pick and left click to get
-----------------please say you do it :)
<<reply 695075="">>
Same here. Getting spammed by the error mentioned below.
Getting this error spamed to the server:
EVERE] Could not pass event PlayerMoveEvent to Sign Casino Blackjack
java.lang.NullPointerException
@kal217
Economy lol.
What do you use to bet with the machines? gold? iron? diamond?
@shiny12346
im working on a smoother transition for these.
For now, just stop server, edit file, then load it in.
I have an Issue: whenever i try to edit the config.yml and rolls.yml every time when i save them and reload the game it resets to default settings. and even if i don't reload the game it still instantly resets. help?
v1.0.3 Is Out
Make sure to read carefully the changes!
Version 1.0.3 : 4/26/2012
@BaconTex
If you are going to persist to post in my project with nothing but negatively tuned comments, I am going to request you discontinue posting here. Helping and pointing out errors, bugs, and helping the developer to perfect his plugin is one thing, but to go about it in a rude and unprofessional manner is not approved and I will not tolerate it on my threads/projects.
@BaconTex
I will look into negative deposits, and display of cost amounts, most likely a rounding issue due to int vs double since mostly all players do flat int values.
EDIT: The nickel and dime values are working, just the display was set to int values only. I added an exception check for non int values to be displayed.
Oh hey if you deposit negative amounts of money you instantly get millions of dollars...