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!
Do you can add color numers of rolls.yml ?
@finamenon
Any duping is completely operation error as there are failsafes in the code to prevent duping. Linked Accounts should work, there may be a bad nested-if check for accounts, if linked to account, just put in 1$ to bypass this issue till fix.
@psirusa
This is simply just your server overloading and something clashing with the plugin. Just Disable Casino or find the conflicting plugins causing overload. I Also run over 50 plugins on my server, with both Casino and over 200 Casino Signs, no issues last 3 months.
@Chriz2012
Been debating a way to make winning more visual, nothing concrete yet.
I've run into a strange bug with the slots plugin. I currently have 21 sign slots set up. However the slots.yml is nearly 1MB large and thinks I have 6026 slot machines. It seems to keep duplicating entires. I had to remove every sign to fix this. Apparently the Blackjack plugin is doing the same thing.
Also, is there anyway to have the slots use an account instead of the money deposited in the machine? I tried linking accounts, but it doesnt allow a roll unless money is in the machine.
Third, when linking accounts on blackjack, there is another strange issue. When the player wins, it takes the money from the linked account. When the player loses, the money does not go into the account or the machine. Perhaps I am doing something wrong? Sorry for all the questions O_o
My CraftBukkit version is 1.2.5-4.0, and I am using the latest version of your plugin. There are no errors in the console.
Thanks for your time.
Nice plugin, but I'm having one issue. Running CB-1.2.5-R4.0, 54 other plugins, so too many to list Plugin version 1.3 After a random number of slot rolls, the slot will malfunction into an infinite loop. Player will no longer be able to use slots. Shortly after this, the server will brick. That's the best way I can describe this because the server is still running, has no error, but will no longer function/respond to commands, will drop all players, and begin giving "read timeout error" in the console as people try to connect again. I have tested this with only the Slots plugin active, and am now trying the blackjack plugin to make sure there is no issue there.
-Psi
Great mod, use it on my new server (only got a few members for now untill it goes live properly) and everyone loves it!! Seems to work nicely with Vault and Iconomy etc.
If I could suggest one idea, and I don't know if this could be done, but make it a little more visible to others when someone wins on a slot machine like 1) Add to Chat [xxxx just won xx Credits on Machine#] or 2) smash an EXP bottle from the location of the sign to grab peoples attention. Of course, this could be turned off in the config if wanted =]
@silentnight18
Excellent! Thank you :D
@finamenon
1. Stop Server.
2. Open Slots.yml find slot machine.
3. Change Owner to " ".
4. ??????
5. Profit
6. Start Server
@silentnight18
Ahh sorry, not sure I understand. I want to set the economy account the machine uses as one separate from the person who created it. For example, I create a slot machine, and then want to set the account "town-terraferma" as the account holder. I can not find out how to do so.
Sorry, my English is not good, I have a problem is another world created by the casino it does not work, I do not know what the problem is?
Version 1.3 is out now!!!
(Download may be delayed due to approval time)
@ben3683914
This isnt even a sign casino issue, its an NPE thrown by something else.
@finamenon
Read the thread right above.
Dunno why, but when I destroy the signs for the games I get kicked from the server. Here's the server log.
The games work fine though.
25.06 12:36:32 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 25.06 12:36:32 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453) 25.06 12:36:32 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:556) 25.06 12:36:32 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 25.06 12:36:32 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:121) 25.06 12:36:32 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) 25.06 12:36:32 [Server] INFO at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) 25.06 12:36:32 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:594) 25.06 12:36:32 [Server] INFO at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:179) 25.06 12:36:32 [Server] INFO at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager.java:249) 25.06 12:36:32 [Server] INFO java.lang.NullPointerException 25.06 12:36:32 [Server] WARNING Failed to handle packet: java.lang.NullPointerException
Any method of setting the economy account used in the slots and blackjack? If not, any way it could be added? XD
Hi, I installed the plugin and it works fine. The only thing is you do not understand is why have modified, winning confirmation, title, color and proportion, After the restart, the slot machines showed the new symbols, but also the old (original). Where I'm wrong? thanks
me rolls.yml :
@thealmightypsycho
This is right under notable bugs.
Having an issue where the text on the signs disappear. The tables still work but players are playing blindly.
@Wannab007
Get Vault.
for some reason the permissions for blackjack are not working properly, sc.admin does not give all of the permissions, and after i have put in all of the blackjack perms, i can create but not destroy blackjack signs, and cannot withdraw from them either
using groupmanager from essentials
@MistressMuff
Something went wrong in your rolls.yml. Just delete and redo.
I installed this plugin on my server and it was working great, and then i started getting this message that says " You are already rolling a machine" and " There was no roll to match the random value so the machine stopped." Then it will cycle through the numbers :( iv tried everything to fix this and i cant seem to resolve it. Oh yes and blacjack is working perfectly that only happens with the slots. Any help would be appreciated. :)