Blackjack
Blackjack allows you to play blackjack in Minecraft!
This plugin requires Vault and ImageOnMap.
Features
- Playing blackjack with up to five players at one table without any commands
- The plugin uses maps as card-items
- Inventories are saved and restored after leaving the table
- Changing your stake
- Command to teleport to the next free table
- Automatically generated and protected tables including the dealer
- Setting table limits and minimums
- Command to change the table's blocks or color
- VIP tables
- Adding VIPs via command or permission
- Permissions
- Automatic update check and download (You can disable both individually in the config.)
- Localisation
Video Tutorials
English tutorial by VariationVault
Portuguese tutorial by AbsintoJ
How to play
- Right-click on a free sign with 'New Game' to join the table with the minimum stake.
- Right-click on the face-down card next to the dealer to draw a card.
- You are able to double or split by clicking on one of the two signs.
- If you don't want any more cards, right-click on a block of the table.
- After all players are finished, the dealer draws his cards and the round ends.
- To join the new round right-click on your sign again.
- You can higher and lower your stake step by step by clicking on the sign to the left of the dealer.
Installation and configuration
- 1. Copy "Blackjack.jar" in your server's plugin folder.
- 2. The config.yml will be saved. The options are explained in the file.
- 3. Use "/bj setup" to generate and save the playing cards to new maps.
Do not use or create cards on the whole server while generating!
Your gamemode may change to survival. You cannot die or pickup items until the process is finished.
- 4. After generating the cards, you can create a new blackjack table with "/bj create".
You can create a table with a specific name by typing "/bj create <name>".
You can create a VIP table by typing "/bj createvip (<name>)".
Commands
Player Commands
You can use "/blackjack", "/bj" and "/sbj" to perform Blackjack commands.
/bj help ([page]) - Opens the Blackjack help on the specified page.
(Alias: 'h', '?')
/bj join - Teleports you to the first table with a free seat.
(Alias: 'j')*
/bj teleport [tablenr or tablename] - Teleports you to the specified table.
(Alias: 'tp', 't' or type '/bj [tablename or tablenr]')
/bj stake [stake] - Changes your stake for the next round. You can see your stake in the second line of your sign.
(Alias: 'setstake')
/bj viplist - Displays the VIP list.
(Alias: 'vip', 'vips')
/bj isvip [player] - Checks if a player is VIP.
Admin Commands
/bj reload - Reloads the config and the VIP list.
/bj cleardata - Deletes the data.yml containing all tables.
/bj setup - Downloads the cards when you use the plugin for the first time.
/bj create - Creates a new table named 'Table<nr>'.
/bj create [name] - Creates a new table with the specified name.
/bj createvip ([name]) - Creates a new VIP table named 'Table<nr>' or with the specified name.
(Alias: 'vipcreate', 'viptable')
/bj undo - Undo creating the last table. (Restores all blocks.)
/bj delete - Deletes the table in front of you.
(Alias: 'del','remove','rem')
/bj forcedelete - Forces the deletion of the table in front of you. (If the table is corrupted and the normal deletion fails.)
/bj togglevip ([Tablename]) - Add/Remove VIP status to/from the table you're standing or the table with the specified name.
(Alias: 'toggle', 'viptoggle')
/bj setlimit [limit] - Sets the table limit. Set it to 0 for no limit.
(Alias: 'setmaximum')
/bj setminimum [limit] - Sets the table minimum to the specified value and the table limit to <limit*multiplier>.
/bj color [colorname or colorID] - Colors the table you're standing. The colorIDs are the data values of wool blocks.
(Alias: 'setcolor')
/bj setblock [ID] ([data]) - Sets the ten blocks of the table to the specified block. You can separate ID and data with a ':'.
/bj setwall [ID] ([data]) - Sets the wall behind the table to the specified block. You can separate ID and data with a ':'.
/bj addvip [Player] - Puts the player on the VIP list.
/bj removevip [Player] - Removes the player from the VIP list.
(Alias: 'remvip', 'deletevip', 'delvip')
/bj invclear - Clears your inventory.
/bj getcard [card] ([count]) - Gives you the the specified card. Only use the first letters from the card. E.g. 'HA' (Heart Ace) or 'D8' (Diamond 8 )
/bj restoreall - Restores all player inventories after a crash.
Permissions
Default permissions
- blackjack.play - Permission to play blackjack
- blackjack.stake - Permission to change your stake ("/bj setstake")
- blackjack.teleport - Permission to teleport to a table ("/bj [number]")
- blackjack.viplist - Permission for "/bj vips" and "/bj isvip [Playername]"
Admin permissions
- blackjack.* - All Blackjack permissions
- blackjack.setup - Permission for "/bj setup"
- blackjack.create - Permission for creating normal tables ("/bj create")
- blackjack.delete - Permission for removing tables ("/bj delete")
- blackjack.forcedelete - Forces deleting a table if normal deletion fails. ("/bj forcedelete")
- blackjack.edit - Permission for editing tables ("/bj setlimit", "/bj setmaximum" and "/bj setminimum")
- blackjack.color - Permission to change a table's color ("/bj color")
- blackjack.setblock - Permission to change a table's block IDs and data values ("/bj setblock" and "/bj setwall")
- blackjack.getcard - Permission for "/bj getcard"
- blackjack.invclear - Permission for "/bj invclear"
- blackjack.reload - Permission for "/bj reload"
- blackjack.restoreall - Permission for "/bj restoreall"
- blackjack.vip - Permission to play at VIP-tables
- blackjack.managevips - Permission for managing VIPs ("/bj addvip" and "/bj removevip")
- blackjack.createvip - Permission for creating VIP-tables ("/bj createvip" and "/bj togglevip")
- blackjack.cleardata - Permission to delete the data.yml ("/bj cleardata")
To do
- Adding Spigot compability
Do not destroy or edit any table blocks with WorldEdit or similar plugins!
It will cause corrupted tables and server errors!
Thanks to ZioBlack97 for the Italian translation, you are awesome ;)
Feel free to contact me by PM if you have an idea or if you found a bug.
You can also correct my bad English (I'm German). :D
I want to add more languages to my plugin, it would be nice if someone helps me with the translations. ;)
It would be nice to see my plugin in action on a real server (not my 4-slot plugin test server :D ), so if you use my plugin, you can send me your server IP if you want.
All my work is free, but you can support me if you want.
@kanefreak1987
The plugin uses Vault, so it works with almost every popular economy plugin. :)
@luigi_vampa
In the next update, the distance to the table can be longer.
The villager should disappear when the plugin is disabled and appear when it's enabled.
When you reload the server, the villager should disappear and then spawn again.
Didn't he spawn again?
Normally, you should be able to destroy anything of the table, even if you are in creative mode.
Did you try if you can destroy the card of every table? :D
Does this plugin work with any economy plugins? so players can actually earn money from playing on the server.
Had an issue. The villager disappeared and when using it in creative mode I broke the deal card map off the wall.
Could you add a variable for the distance you can walk from the table before it ends the game? Top game, really like the mechanics. :)
Awesome plugin, especially for something only a month old. The plugin seems to work ok but if you want to join a game or select the face down card you have to be really close to it. From the five signs at the front of the table, the deal card mechanism only works if you're stood in front of sign 4.
@FistikipRulesMC
What doesn't work, the setup?
Maybe you have a space ' ' in one folder of your server path, that's a common issue. :D
The plugin doesn't work please help!
@tremby90
Normally, the process takes about 2-3 mins.
Maybe you have a space ' ' in one folder of your server path, that's a common issue.
I fixed this bug in the next version, but I haven't finished the localisation yet.
its been like 3 days and it still says its still downloading the server I see a whole lot of files in the cards folder but i cant create the game yet
@thealmightypsycho
It's a problem with the item frames and Spigot.
You are not the only one with this error, I'm trying to fix it :D
I was able to setup and table and use it just fine but after a restart I get this error and it stops working. http://pastebin.com/un9MPzu8
@crazytank77
Hi, I'm fine :D
I'm sorry, I've exams the next three days. I will contact you afterwards. :)
I'm tried to add 1.6.4-compatibility to the next version, maybe we can try my newest dev-Build.
Hallo PM! Wie geht's dir?
I had a minor problem after all we did, sometimes the tables are not giving the inventory back when we walk away from it. Any ideas of what can do this?
Danke!
@thewigit
It's a common issue, I explained you how to fix it by PM.
amazing idea btw! just hope i can get it to work :)
keeps saying: Timeout: the render took too many time
Will not work...help
I have no words to say how this guy is. I had problems with the plugin and he was on my server after 10 min of my pm and fixed everything. PUT A DONATE BUTTON NOW! *Throws imaginary money at the screen* =D
Thank you so much. Danke mein freund. =)
@FlOppythp
Yes, the whole table is protected, including the villager and the item frames :D
Actually a friend had the same idea, we will start to add poker and other games together after I finished Blackjack :D
I've thrown this on our server and it's awesome, thank you for making this!!!
I had a quick question for you:
Will you be adding things such as Double Down or Splits?
Thanks again! :)
Edit: I see this doesn't play nice with Sign Casino Blackjack. Darn, I was hoping to keep both for variety reasons. :(